diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2018-08-08 10:26:27 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2018-08-08 10:26:27 -0400 |
commit | ca75e6e0ff1381e93a18ed086ef1963f4a2dc0c4 (patch) | |
tree | 780b90847462063ef8f32988f54a1c16315e283e | |
parent | e47eeb12faea73379a22d8f3db30b56cbc65d37b (diff) |
Fix build [-Werror,-Wunused-const-variable] (nw)
-rw-r--r-- | src/devices/video/hp1ll3.cpp | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/src/devices/video/hp1ll3.cpp b/src/devices/video/hp1ll3.cpp index 136d8f0e27d..ede0a04ca01 100644 --- a/src/devices/video/hp1ll3.cpp +++ b/src/devices/video/hp1ll3.cpp @@ -149,25 +149,31 @@ constexpr uint16_t MSB_MASK = 0x8000; // Mask of MSB #define HPGPU_VRAM_SIZE 16384 // Index of words in configuration vector -constexpr unsigned CONF_HOR_0 = 0; // Horizontal timing, 1st word -constexpr unsigned CONF_HOR_1 = 1; // Horizontal timing, 2nd word -constexpr unsigned CONF_HOR_2 = 2; // Horizontal timing, 3rd word -constexpr unsigned CONF_HOR_3 = 3; // Horizontal timing, 4th word -constexpr unsigned CONF_VER_0 = 4; // Vertical timing, 1st word -constexpr unsigned CONF_VER_1 = 5; // Vertical timing, 2nd word -constexpr unsigned CONF_VER_2 = 6; // Vertical timing, 3rd word -constexpr unsigned CONF_VER_3 = 7; // Vertical timing, 4th word -constexpr unsigned CONF_WPL = 8; // Words per line -constexpr unsigned CONF_LINES = 9; // Lines -constexpr unsigned CONF_RAM_SIZE = 10; // RAM size (?) +enum +{ + CONF_HOR_0 = 0, // Horizontal timing, 1st word + CONF_HOR_1 = 1, // Horizontal timing, 2nd word + CONF_HOR_2 = 2, // Horizontal timing, 3rd word + CONF_HOR_3 = 3, // Horizontal timing, 4th word + CONF_VER_0 = 4, // Vertical timing, 1st word + CONF_VER_1 = 5, // Vertical timing, 2nd word + CONF_VER_2 = 6, // Vertical timing, 3rd word + CONF_VER_3 = 7, // Vertical timing, 4th word + CONF_WPL = 8, // Words per line + CONF_LINES = 9, // Lines + CONF_RAM_SIZE = 10 // RAM size (?) +}; // Fields of hor/ver timing words -constexpr uint16_t HV_CNT_MASK = 0x3ff; // Mask of counter part -constexpr uint16_t HV_ZONE_MASK = 0xc000; // Mask of zone part -constexpr uint16_t HV_ZONE_0 = 0x0000; // Value for zone 0 -constexpr uint16_t HV_ZONE_1 = 0x4000; // Value for zone 1 -constexpr uint16_t HV_ZONE_2 = 0x8000; // Value for zone 2 -constexpr uint16_t HV_ZONE_3 = 0xc000; // Value for zone 3 +enum +{ + HV_CNT_MASK = 0x3ff, // Mask of counter part + HV_ZONE_MASK = 0xc000, // Mask of zone part + HV_ZONE_0 = 0x0000, // Value for zone 0 + HV_ZONE_1 = 0x4000, // Value for zone 1 + HV_ZONE_2 = 0x8000, // Value for zone 2 + HV_ZONE_3 = 0xc000 // Value for zone 3 +}; //************************************************************************** // GLOBAL VARIABLES |