bfm/bfm_bd1.h, bfm/bfm_bda.h: const -> constexpr, fixes undefined references when building with -O0 on macOS (#12129)

This commit is contained in:
balr0g 2024-03-11 20:31:58 -04:00 committed by GitHub
parent d50c07b4f2
commit 7f2b2421da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View File

@ -37,10 +37,10 @@ protected:
virtual void device_post_load() override;
private:
static const uint8_t AT_NORMAL = 0x00;
static const uint8_t AT_FLASH = 0x01;
static const uint8_t AT_BLANK = 0x02;
static const uint8_t AT_FLASHED = 0x80; // set when character should be blinked off
static constexpr uint8_t AT_NORMAL = 0x00;
static constexpr uint8_t AT_FLASH = 0x01;
static constexpr uint8_t AT_BLANK = 0x02;
static constexpr uint8_t AT_FLASHED = 0x80; // set when character should be blinked off
std::unique_ptr<output_finder<16> > m_outputs;
uint8_t m_port_val;

View File

@ -34,10 +34,10 @@ protected:
virtual void device_post_load() override;
private:
static const uint8_t AT_NORMAL = 0x00;
static const uint8_t AT_FLASH = 0x01;
static const uint8_t AT_BLANK = 0x02;
static const uint8_t AT_FLASHED = 0x80; // set when character should be blinked off
static constexpr uint8_t AT_NORMAL = 0x00;
static constexpr uint8_t AT_FLASH = 0x01;
static constexpr uint8_t AT_BLANK = 0x02;
static constexpr uint8_t AT_FLASHED = 0x80; // set when character should be blinked off
std::unique_ptr<output_finder<16> > m_outputs;
std::unique_ptr<output_finder<1> > m_brightness;