libgme / game-music-emu

Blargg's video game music emulation library, which allows audio applications to easily add playback support for the music of many classic video game consoles.
GNU Lesser General Public License v2.1
56 stars 12 forks source link

many -Wdeprecated-enum-float-conversion from gcc14 with -std=c++20 or -std=c++2a #94

Open sezero opened 1 month ago

sezero commented 1 month ago

gcc-14 emits many -Wdeprecated-enum-float-conversion with -std=c++20 or -std=c++2a

This is just a FYI. Don't know whether or not you want to fix that.

Here is the output:

``` In file included from /tmp/libgme/gme/Ay_Apu.cpp:3: /tmp/libgme/gme/Ay_Apu.h: In member function 'void Ay_Apu::volume(double)': /tmp/libgme/gme/Ay_Apu.h:74:61: warning: arithmetic between floating-point type 'double' and enumeration type 'Ay_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 74 | inline void Ay_Apu::volume( double v ) { synth_.volume( 0.7 / osc_count / amp_range * v ); } | ~~~~^~~~~~~~~~~ /tmp/libgme/gme/Ay_Apu.h:74:73: warning: arithmetic between floating-point type 'double' and enumeration type 'Ay_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 74 | inline void Ay_Apu::volume( double v ) { synth_.volume( 0.7 / osc_count / amp_range * v ); } | ~~~~~~~~~~~~~~~~^~~~~~~~~~~ /tmp/libgme/gme/Ay_Apu.cpp: At global scope: /tmp/libgme/gme/Ay_Apu.cpp:31:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Ay_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 31 | #define ENTRY( n ) byte (n * Ay_Apu::amp_range + 0.5) | ^ /tmp/libgme/gme/Ay_Apu.cpp:34:9: note: in expansion of macro 'ENTRY' 34 | ENTRY(0.000000),ENTRY(0.007813),ENTRY(0.011049),ENTRY(0.015625), | ^~~~~ /tmp/libgme/gme/Ay_Apu.cpp:31:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Ay_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 31 | #define ENTRY( n ) byte (n * Ay_Apu::amp_range + 0.5) | ^ /tmp/libgme/gme/Ay_Apu.cpp:34:25: note: in expansion of macro 'ENTRY' 34 | ENTRY(0.000000),ENTRY(0.007813),ENTRY(0.011049),ENTRY(0.015625), | ^~~~~ /tmp/libgme/gme/Ay_Apu.cpp:31:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Ay_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 31 | #define ENTRY( n ) byte (n * Ay_Apu::amp_range + 0.5) | ^ /tmp/libgme/gme/Ay_Apu.cpp:34:41: note: in expansion of macro 'ENTRY' 34 | ENTRY(0.000000),ENTRY(0.007813),ENTRY(0.011049),ENTRY(0.015625), | ^~~~~ /tmp/libgme/gme/Ay_Apu.cpp:31:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Ay_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 31 | #define ENTRY( n ) byte (n * Ay_Apu::amp_range + 0.5) | ^ /tmp/libgme/gme/Ay_Apu.cpp:34:57: note: in expansion of macro 'ENTRY' 34 | ENTRY(0.000000),ENTRY(0.007813),ENTRY(0.011049),ENTRY(0.015625), | ^~~~~ /tmp/libgme/gme/Ay_Apu.cpp:31:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Ay_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 31 | #define ENTRY( n ) byte (n * Ay_Apu::amp_range + 0.5) | ^ /tmp/libgme/gme/Ay_Apu.cpp:35:9: note: in expansion of macro 'ENTRY' 35 | ENTRY(0.022097),ENTRY(0.031250),ENTRY(0.044194),ENTRY(0.062500), | ^~~~~ /tmp/libgme/gme/Ay_Apu.cpp:31:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Ay_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 31 | #define ENTRY( n ) byte (n * Ay_Apu::amp_range + 0.5) | ^ /tmp/libgme/gme/Ay_Apu.cpp:35:25: note: in expansion of macro 'ENTRY' 35 | ENTRY(0.022097),ENTRY(0.031250),ENTRY(0.044194),ENTRY(0.062500), | ^~~~~ /tmp/libgme/gme/Ay_Apu.cpp:31:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Ay_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 31 | #define ENTRY( n ) byte (n * Ay_Apu::amp_range + 0.5) | ^ /tmp/libgme/gme/Ay_Apu.cpp:35:41: note: in expansion of macro 'ENTRY' 35 | ENTRY(0.022097),ENTRY(0.031250),ENTRY(0.044194),ENTRY(0.062500), | ^~~~~ /tmp/libgme/gme/Ay_Apu.cpp:31:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Ay_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 31 | #define ENTRY( n ) byte (n * Ay_Apu::amp_range + 0.5) | ^ /tmp/libgme/gme/Ay_Apu.cpp:35:57: note: in expansion of macro 'ENTRY' 35 | ENTRY(0.022097),ENTRY(0.031250),ENTRY(0.044194),ENTRY(0.062500), | ^~~~~ /tmp/libgme/gme/Ay_Apu.cpp:31:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Ay_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 31 | #define ENTRY( n ) byte (n * Ay_Apu::amp_range + 0.5) | ^ /tmp/libgme/gme/Ay_Apu.cpp:36:9: note: in expansion of macro 'ENTRY' 36 | ENTRY(0.088388),ENTRY(0.125000),ENTRY(0.176777),ENTRY(0.250000), | ^~~~~ /tmp/libgme/gme/Ay_Apu.cpp:31:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Ay_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 31 | #define ENTRY( n ) byte (n * Ay_Apu::amp_range + 0.5) | ^ /tmp/libgme/gme/Ay_Apu.cpp:36:25: note: in expansion of macro 'ENTRY' 36 | ENTRY(0.088388),ENTRY(0.125000),ENTRY(0.176777),ENTRY(0.250000), | ^~~~~ /tmp/libgme/gme/Ay_Apu.cpp:31:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Ay_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 31 | #define ENTRY( n ) byte (n * Ay_Apu::amp_range + 0.5) | ^ /tmp/libgme/gme/Ay_Apu.cpp:36:41: note: in expansion of macro 'ENTRY' 36 | ENTRY(0.088388),ENTRY(0.125000),ENTRY(0.176777),ENTRY(0.250000), | ^~~~~ /tmp/libgme/gme/Ay_Apu.cpp:31:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Ay_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 31 | #define ENTRY( n ) byte (n * Ay_Apu::amp_range + 0.5) | ^ /tmp/libgme/gme/Ay_Apu.cpp:36:57: note: in expansion of macro 'ENTRY' 36 | ENTRY(0.088388),ENTRY(0.125000),ENTRY(0.176777),ENTRY(0.250000), | ^~~~~ /tmp/libgme/gme/Ay_Apu.cpp:31:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Ay_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 31 | #define ENTRY( n ) byte (n * Ay_Apu::amp_range + 0.5) | ^ /tmp/libgme/gme/Ay_Apu.cpp:37:9: note: in expansion of macro 'ENTRY' 37 | ENTRY(0.353553),ENTRY(0.500000),ENTRY(0.707107),ENTRY(1.000000), | ^~~~~ /tmp/libgme/gme/Ay_Apu.cpp:31:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Ay_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 31 | #define ENTRY( n ) byte (n * Ay_Apu::amp_range + 0.5) | ^ /tmp/libgme/gme/Ay_Apu.cpp:37:25: note: in expansion of macro 'ENTRY' 37 | ENTRY(0.353553),ENTRY(0.500000),ENTRY(0.707107),ENTRY(1.000000), | ^~~~~ /tmp/libgme/gme/Ay_Apu.cpp:31:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Ay_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 31 | #define ENTRY( n ) byte (n * Ay_Apu::amp_range + 0.5) | ^ /tmp/libgme/gme/Ay_Apu.cpp:37:41: note: in expansion of macro 'ENTRY' 37 | ENTRY(0.353553),ENTRY(0.500000),ENTRY(0.707107),ENTRY(1.000000), | ^~~~~ /tmp/libgme/gme/Ay_Apu.cpp:31:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Ay_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 31 | #define ENTRY( n ) byte (n * Ay_Apu::amp_range + 0.5) | ^ /tmp/libgme/gme/Ay_Apu.cpp:37:57: note: in expansion of macro 'ENTRY' 37 | ENTRY(0.353553),ENTRY(0.500000),ENTRY(0.707107),ENTRY(1.000000), | ^~~~~ In file included from /tmp/libgme/gme/Ay_Emu.h:8, from /tmp/libgme/gme/Ay_Emu.cpp:3: /tmp/libgme/gme/Ay_Apu.h: In member function 'void Ay_Apu::volume(double)': /tmp/libgme/gme/Ay_Apu.h:74:61: warning: arithmetic between floating-point type 'double' and enumeration type 'Ay_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 74 | inline void Ay_Apu::volume( double v ) { synth_.volume( 0.7 / osc_count / amp_range * v ); } | ~~~~^~~~~~~~~~~ /tmp/libgme/gme/Ay_Apu.h:74:73: warning: arithmetic between floating-point type 'double' and enumeration type 'Ay_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 74 | inline void Ay_Apu::volume( double v ) { synth_.volume( 0.7 / osc_count / amp_range * v ); } | ~~~~~~~~~~~~~~~~^~~~~~~~~~~ /tmp/libgme/gme/Ay_Emu.cpp: In member function 'virtual const char* Ay_Emu::start_track_(int)': /tmp/libgme/gme/Ay_Emu.cpp:264:43: warning: arithmetic between enumeration type 'Ay_Apu::' and floating-point type 'double' is deprecated [-Wdeprecated-enum-float-conversion] 264 | beeper_delta = int (apu.amp_range * 0.65); In file included from /tmp/libgme/gme/Gb_Apu.cpp:3: /tmp/libgme/gme/Gb_Apu.h:39:42: warning: arithmetic between different enumeration types 'Gb_Apu::' and 'Gb_Apu::' is deprecated [-Wdeprecated-enum-enum-conversion] 39 | enum { register_count = end_addr - start_addr + 1 }; | ~~~~~~~~~^~~~~~~~~~~~ /tmp/libgme/gme/Gb_Apu.h: In member function 'void Gb_Apu::volume(double)': /tmp/libgme/gme/Gb_Apu.h:86:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Gb_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 86 | volume_unit = 0.60 / osc_count / 15 /*steps*/ / 2 /*?*/ / 8 /*master vol range*/ * vol; | ~~~~~^~~~~~~~~~~ In file included from /tmp/libgme/gme/Gbs_Emu.h:8, from /tmp/libgme/gme/gb_cpu_io.h:2, from /tmp/libgme/gme/Gb_Cpu.cpp:20: /tmp/libgme/gme/Gb_Apu.h:39:42: warning: arithmetic between different enumeration types 'Gb_Apu::' and 'Gb_Apu::' is deprecated [-Wdeprecated-enum-enum-conversion] 39 | enum { register_count = end_addr - start_addr + 1 }; | ~~~~~~~~~^~~~~~~~~~~~ /tmp/libgme/gme/Gb_Apu.h: In member function 'void Gb_Apu::volume(double)': /tmp/libgme/gme/Gb_Apu.h:86:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Gb_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 86 | volume_unit = 0.60 / osc_count / 15 /*steps*/ / 2 /*?*/ / 8 /*master vol range*/ * vol; | ~~~~~^~~~~~~~~~~ In file included from /tmp/libgme/gme/Gb_Oscs.cpp:3: /tmp/libgme/gme/Gb_Apu.h:39:42: warning: arithmetic between different enumeration types 'Gb_Apu::' and 'Gb_Apu::' is deprecated [-Wdeprecated-enum-enum-conversion] 39 | enum { register_count = end_addr - start_addr + 1 }; | ~~~~~~~~~^~~~~~~~~~~~ /tmp/libgme/gme/Gb_Apu.h: In member function 'void Gb_Apu::volume(double)': /tmp/libgme/gme/Gb_Apu.h:86:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Gb_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 86 | volume_unit = 0.60 / osc_count / 15 /*steps*/ / 2 /*?*/ / 8 /*master vol range*/ * vol; | ~~~~~^~~~~~~~~~~ In file included from /tmp/libgme/gme/Gbs_Emu.h:8, from /tmp/libgme/gme/Gbs_Emu.cpp:3: /tmp/libgme/gme/Gb_Apu.h:39:42: warning: arithmetic between different enumeration types 'Gb_Apu::' and 'Gb_Apu::' is deprecated [-Wdeprecated-enum-enum-conversion] 39 | enum { register_count = end_addr - start_addr + 1 }; | ~~~~~~~~~^~~~~~~~~~~~ /tmp/libgme/gme/Gb_Apu.h: In member function 'void Gb_Apu::volume(double)': /tmp/libgme/gme/Gb_Apu.h:86:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Gb_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 86 | volume_unit = 0.60 / osc_count / 15 /*steps*/ / 2 /*?*/ / 8 /*master vol range*/ * vol; | ~~~~~^~~~~~~~~~~ In file included from /tmp/libgme/gme/Hes_Apu.cpp:3: /tmp/libgme/gme/Hes_Apu.h: In member function 'void Hes_Apu::volume(double)': /tmp/libgme/gme/Hes_Apu.h:62:61: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 62 | inline void Hes_Apu::volume( double v ) { synth.volume( 1.8 / osc_count / Hes_Osc::amp_range * v ); } | ~~~~^~~~~~~~~~~ /tmp/libgme/gme/Hes_Apu.h:62:73: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 62 | inline void Hes_Apu::volume( double v ) { synth.volume( 1.8 / osc_count / Hes_Osc::amp_range * v ); } | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /tmp/libgme/gme/Hes_Apu.cpp: In member function 'void Hes_Apu::balance_changed(Hes_Osc&)': /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:187:17: note: in expansion of macro 'ENTRY' 187 | ENTRY( 0.000000 ),ENTRY( 0.005524 ),ENTRY( 0.006570 ),ENTRY( 0.007813 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:187:35: note: in expansion of macro 'ENTRY' 187 | ENTRY( 0.000000 ),ENTRY( 0.005524 ),ENTRY( 0.006570 ),ENTRY( 0.007813 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:187:53: note: in expansion of macro 'ENTRY' 187 | ENTRY( 0.000000 ),ENTRY( 0.005524 ),ENTRY( 0.006570 ),ENTRY( 0.007813 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:187:71: note: in expansion of macro 'ENTRY' 187 | ENTRY( 0.000000 ),ENTRY( 0.005524 ),ENTRY( 0.006570 ),ENTRY( 0.007813 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:188:17: note: in expansion of macro 'ENTRY' 188 | ENTRY( 0.009291 ),ENTRY( 0.011049 ),ENTRY( 0.013139 ),ENTRY( 0.015625 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:188:35: note: in expansion of macro 'ENTRY' 188 | ENTRY( 0.009291 ),ENTRY( 0.011049 ),ENTRY( 0.013139 ),ENTRY( 0.015625 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:188:53: note: in expansion of macro 'ENTRY' 188 | ENTRY( 0.009291 ),ENTRY( 0.011049 ),ENTRY( 0.013139 ),ENTRY( 0.015625 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:188:71: note: in expansion of macro 'ENTRY' 188 | ENTRY( 0.009291 ),ENTRY( 0.011049 ),ENTRY( 0.013139 ),ENTRY( 0.015625 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:189:17: note: in expansion of macro 'ENTRY' 189 | ENTRY( 0.018581 ),ENTRY( 0.022097 ),ENTRY( 0.026278 ),ENTRY( 0.031250 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:189:35: note: in expansion of macro 'ENTRY' 189 | ENTRY( 0.018581 ),ENTRY( 0.022097 ),ENTRY( 0.026278 ),ENTRY( 0.031250 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:189:53: note: in expansion of macro 'ENTRY' 189 | ENTRY( 0.018581 ),ENTRY( 0.022097 ),ENTRY( 0.026278 ),ENTRY( 0.031250 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:189:71: note: in expansion of macro 'ENTRY' 189 | ENTRY( 0.018581 ),ENTRY( 0.022097 ),ENTRY( 0.026278 ),ENTRY( 0.031250 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:190:17: note: in expansion of macro 'ENTRY' 190 | ENTRY( 0.037163 ),ENTRY( 0.044194 ),ENTRY( 0.052556 ),ENTRY( 0.062500 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:190:35: note: in expansion of macro 'ENTRY' 190 | ENTRY( 0.037163 ),ENTRY( 0.044194 ),ENTRY( 0.052556 ),ENTRY( 0.062500 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:190:53: note: in expansion of macro 'ENTRY' 190 | ENTRY( 0.037163 ),ENTRY( 0.044194 ),ENTRY( 0.052556 ),ENTRY( 0.062500 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:190:71: note: in expansion of macro 'ENTRY' 190 | ENTRY( 0.037163 ),ENTRY( 0.044194 ),ENTRY( 0.052556 ),ENTRY( 0.062500 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:191:17: note: in expansion of macro 'ENTRY' 191 | ENTRY( 0.074325 ),ENTRY( 0.088388 ),ENTRY( 0.105112 ),ENTRY( 0.125000 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:191:35: note: in expansion of macro 'ENTRY' 191 | ENTRY( 0.074325 ),ENTRY( 0.088388 ),ENTRY( 0.105112 ),ENTRY( 0.125000 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:191:53: note: in expansion of macro 'ENTRY' 191 | ENTRY( 0.074325 ),ENTRY( 0.088388 ),ENTRY( 0.105112 ),ENTRY( 0.125000 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:191:71: note: in expansion of macro 'ENTRY' 191 | ENTRY( 0.074325 ),ENTRY( 0.088388 ),ENTRY( 0.105112 ),ENTRY( 0.125000 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:192:17: note: in expansion of macro 'ENTRY' 192 | ENTRY( 0.148651 ),ENTRY( 0.176777 ),ENTRY( 0.210224 ),ENTRY( 0.250000 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:192:35: note: in expansion of macro 'ENTRY' 192 | ENTRY( 0.148651 ),ENTRY( 0.176777 ),ENTRY( 0.210224 ),ENTRY( 0.250000 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:192:53: note: in expansion of macro 'ENTRY' 192 | ENTRY( 0.148651 ),ENTRY( 0.176777 ),ENTRY( 0.210224 ),ENTRY( 0.250000 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:192:71: note: in expansion of macro 'ENTRY' 192 | ENTRY( 0.148651 ),ENTRY( 0.176777 ),ENTRY( 0.210224 ),ENTRY( 0.250000 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:193:17: note: in expansion of macro 'ENTRY' 193 | ENTRY( 0.297302 ),ENTRY( 0.353553 ),ENTRY( 0.420448 ),ENTRY( 0.500000 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:193:35: note: in expansion of macro 'ENTRY' 193 | ENTRY( 0.297302 ),ENTRY( 0.353553 ),ENTRY( 0.420448 ),ENTRY( 0.500000 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:193:53: note: in expansion of macro 'ENTRY' 193 | ENTRY( 0.297302 ),ENTRY( 0.353553 ),ENTRY( 0.420448 ),ENTRY( 0.500000 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:193:71: note: in expansion of macro 'ENTRY' 193 | ENTRY( 0.297302 ),ENTRY( 0.353553 ),ENTRY( 0.420448 ),ENTRY( 0.500000 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:194:17: note: in expansion of macro 'ENTRY' 194 | ENTRY( 0.594604 ),ENTRY( 0.707107 ),ENTRY( 0.840896 ),ENTRY( 1.000000 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:194:35: note: in expansion of macro 'ENTRY' 194 | ENTRY( 0.594604 ),ENTRY( 0.707107 ),ENTRY( 0.840896 ),ENTRY( 1.000000 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:194:53: note: in expansion of macro 'ENTRY' 194 | ENTRY( 0.594604 ),ENTRY( 0.707107 ),ENTRY( 0.840896 ),ENTRY( 1.000000 ), | ^~~~~ /tmp/libgme/gme/Hes_Apu.cpp:186:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 186 | #define ENTRY( factor ) short (factor * Hes_Osc::amp_range / 31.0 + 0.5) | ^ /tmp/libgme/gme/Hes_Apu.cpp:194:71: note: in expansion of macro 'ENTRY' 194 | ENTRY( 0.594604 ),ENTRY( 0.707107 ),ENTRY( 0.840896 ),ENTRY( 1.000000 ), | ^~~~~ In file included from /tmp/libgme/gme/Hes_Emu.h:8, from /tmp/libgme/gme/hes_cpu_io.h:2, from /tmp/libgme/gme/Hes_Cpu.cpp:29: /tmp/libgme/gme/Hes_Apu.h: In member function 'void Hes_Apu::volume(double)': /tmp/libgme/gme/Hes_Apu.h:62:61: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 62 | inline void Hes_Apu::volume( double v ) { synth.volume( 1.8 / osc_count / Hes_Osc::amp_range * v ); } | ~~~~^~~~~~~~~~~ /tmp/libgme/gme/Hes_Apu.h:62:73: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 62 | inline void Hes_Apu::volume( double v ) { synth.volume( 1.8 / osc_count / Hes_Osc::amp_range * v ); } | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/libgme/gme/Hes_Emu.h:8, from /tmp/libgme/gme/Hes_Emu.cpp:3: /tmp/libgme/gme/Hes_Apu.h: In member function 'void Hes_Apu::volume(double)': /tmp/libgme/gme/Hes_Apu.h:62:61: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 62 | inline void Hes_Apu::volume( double v ) { synth.volume( 1.8 / osc_count / Hes_Osc::amp_range * v ); } | ~~~~^~~~~~~~~~~ /tmp/libgme/gme/Hes_Apu.h:62:73: warning: arithmetic between floating-point type 'double' and enumeration type 'Hes_Osc::' is deprecated [-Wdeprecated-enum-float-conversion] 62 | inline void Hes_Apu::volume( double v ) { synth.volume( 1.8 / osc_count / Hes_Osc::amp_range * v ); } | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /tmp/libgme/gme/Hes_Emu.cpp: In member function 'void Hes_Emu::cpu_write_(hes_addr_t, int)': /tmp/libgme/gme/Hes_Emu.cpp:292:63: warning: arithmetic between different enumeration types 'Hes_Apu::' and 'Hes_Apu::' is deprecated [-Wdeprecated-enum-enum-conversion] 292 | if ( unsigned (addr - apu.start_addr) <= apu.end_addr - apu.start_addr ) In file included from /tmp/libgme/gme/Kss_Emu.h:8, from /tmp/libgme/gme/Kss_Emu.cpp:3: /tmp/libgme/gme/Kss_Scc_Apu.h: In member function 'void Scc_Apu::volume(double)': /tmp/libgme/gme/Kss_Scc_Apu.h:60:62: warning: arithmetic between floating-point type 'double' and enumeration type 'Scc_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 60 | inline void Scc_Apu::volume( double v ) { synth.volume( 0.43 / osc_count / amp_range * v ); } | ~~~~~^~~~~~~~~~~ /tmp/libgme/gme/Kss_Scc_Apu.h:60:74: warning: arithmetic between floating-point type 'double' and enumeration type 'Scc_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 60 | inline void Scc_Apu::volume( double v ) { synth.volume( 0.43 / osc_count / amp_range * v ); } | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /tmp/libgme/gme/Kss_Emu.h:11: /tmp/libgme/gme/Ay_Apu.h: In member function 'void Ay_Apu::volume(double)': /tmp/libgme/gme/Ay_Apu.h:74:61: warning: arithmetic between floating-point type 'double' and enumeration type 'Ay_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 74 | inline void Ay_Apu::volume( double v ) { synth_.volume( 0.7 / osc_count / amp_range * v ); } | ~~~~^~~~~~~~~~~ /tmp/libgme/gme/Ay_Apu.h:74:73: warning: arithmetic between floating-point type 'double' and enumeration type 'Ay_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 74 | inline void Ay_Apu::volume( double v ) { synth_.volume( 0.7 / osc_count / amp_range * v ); } | ~~~~~~~~~~~~~~~~^~~~~~~~~~~ /tmp/libgme/gme/Kss_Emu.h: At global scope: /tmp/libgme/gme/Kss_Emu.h:86:28: warning: arithmetic between different enumeration types 'Kss_Emu::' and 'Kss_Cpu::' is deprecated [-Wdeprecated-enum-enum-conversion] 86 | byte ram [mem_size + cpu_padding]; | ~~~~~~~~~^~~~~~~~~~~~~ /tmp/libgme/gme/Kss_Emu.cpp:23:48: warning: arithmetic between different enumeration types 'Ay_Apu::' and 'Scc_Apu::' is deprecated [-Wdeprecated-enum-enum-conversion] 23 | static int const osc_count = Ay_Apu::osc_count + Scc_Apu::osc_count; | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/libgme/gme/Kss_Scc_Apu.cpp:3: /tmp/libgme/gme/Kss_Scc_Apu.h: In member function 'void Scc_Apu::volume(double)': /tmp/libgme/gme/Kss_Scc_Apu.h:60:62: warning: arithmetic between floating-point type 'double' and enumeration type 'Scc_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 60 | inline void Scc_Apu::volume( double v ) { synth.volume( 0.43 / osc_count / amp_range * v ); } | ~~~~~^~~~~~~~~~~ /tmp/libgme/gme/Kss_Scc_Apu.h:60:74: warning: arithmetic between floating-point type 'double' and enumeration type 'Scc_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 60 | inline void Scc_Apu::volume( double v ) { synth.volume( 0.43 / osc_count / amp_range * v ); } | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~ /tmp/libgme/gme/Nes_Apu.cpp: In member function 'void Nes_Apu::write_register(nes_time_t, nes_addr_t, int)': /tmp/libgme/gme/Nes_Apu.cpp:289:54: warning: arithmetic between different enumeration types 'Nes_Apu::' and 'Nes_Apu::' is deprecated [-Wdeprecated-enum-enum-conversion] 289 | if ( unsigned (addr - start_addr) > end_addr - start_addr ) | ~~~~~~~~~^~~~~~~~~~~~ In file included from /tmp/libgme/gme/nes_cpu_io.h:5, from /tmp/libgme/gme/Nes_Cpu.cpp:28: /tmp/libgme/gme/Nes_Namco_Apu.h: In member function 'void Nes_Namco_Apu::volume(double)': /tmp/libgme/gme/Nes_Namco_Apu.h:82:68: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Namco_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 82 | inline void Nes_Namco_Apu::volume( double v ) { synth.volume( 0.10 / osc_count * v ); } | ~~~~~^~~~~~~~~~~ In file included from /tmp/libgme/gme/nes_cpu_io.h:6: /tmp/libgme/gme/Nes_Fds_Apu.h: In member function 'void Nes_Fds_Apu::volume(double)': /tmp/libgme/gme/Nes_Fds_Apu.h:74:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fds_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 74 | synth.volume( 0.14 / master_vol_max / vol_max / wave_sample_max * v ); | ~~~~~^~~~~~~~~~~~~~~~ /tmp/libgme/gme/Nes_Fds_Apu.h:74:45: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fds_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 74 | synth.volume( 0.14 / master_vol_max / vol_max / wave_sample_max * v ); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ /tmp/libgme/gme/Nes_Fds_Apu.h:74:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fds_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 74 | synth.volume( 0.14 / master_vol_max / vol_max / wave_sample_max * v ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /tmp/libgme/gme/nes_cpu_io.h: In member function 'void Nsf_Emu::cpu_write(nes_addr_t, int)': /tmp/libgme/gme/nes_cpu_io.h:75:73: warning: arithmetic between different enumeration types 'Nes_Apu::' and 'Nes_Apu::' is deprecated [-Wdeprecated-enum-enum-conversion] 75 | if ( unsigned (addr - Nes_Apu::start_addr) <= Nes_Apu::end_addr - Nes_Apu::start_addr ) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/libgme/gme/Nes_Fme7_Apu.cpp:3: /tmp/libgme/gme/Nes_Fme7_Apu.h: In member function 'void Nes_Fme7_Apu::volume(double)': /tmp/libgme/gme/Nes_Fme7_Apu.h:67:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fme7_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 67 | synth.volume( 0.38 / amp_range * v ); // to do: fine-tune | ~~~~~^~~~~~~~~~~ /tmp/libgme/gme/Nes_Fme7_Apu.cpp: At global scope: /tmp/libgme/gme/Nes_Fme7_Apu.cpp:33:47: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fme7_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 33 | #define ENTRY( n ) (unsigned char) (n * amp_range + 0.5) | ^ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:34:9: note: in expansion of macro 'ENTRY' 34 | ENTRY(0.0000), ENTRY(0.0078), ENTRY(0.0110), ENTRY(0.0156), | ^~~~~ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:33:47: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fme7_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 33 | #define ENTRY( n ) (unsigned char) (n * amp_range + 0.5) | ^ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:34:24: note: in expansion of macro 'ENTRY' 34 | ENTRY(0.0000), ENTRY(0.0078), ENTRY(0.0110), ENTRY(0.0156), | ^~~~~ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:33:47: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fme7_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 33 | #define ENTRY( n ) (unsigned char) (n * amp_range + 0.5) | ^ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:34:39: note: in expansion of macro 'ENTRY' 34 | ENTRY(0.0000), ENTRY(0.0078), ENTRY(0.0110), ENTRY(0.0156), | ^~~~~ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:33:47: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fme7_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 33 | #define ENTRY( n ) (unsigned char) (n * amp_range + 0.5) | ^ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:34:54: note: in expansion of macro 'ENTRY' 34 | ENTRY(0.0000), ENTRY(0.0078), ENTRY(0.0110), ENTRY(0.0156), | ^~~~~ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:33:47: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fme7_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 33 | #define ENTRY( n ) (unsigned char) (n * amp_range + 0.5) | ^ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:35:9: note: in expansion of macro 'ENTRY' 35 | ENTRY(0.0221), ENTRY(0.0312), ENTRY(0.0441), ENTRY(0.0624), | ^~~~~ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:33:47: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fme7_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 33 | #define ENTRY( n ) (unsigned char) (n * amp_range + 0.5) | ^ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:35:24: note: in expansion of macro 'ENTRY' 35 | ENTRY(0.0221), ENTRY(0.0312), ENTRY(0.0441), ENTRY(0.0624), | ^~~~~ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:33:47: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fme7_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 33 | #define ENTRY( n ) (unsigned char) (n * amp_range + 0.5) | ^ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:35:39: note: in expansion of macro 'ENTRY' 35 | ENTRY(0.0221), ENTRY(0.0312), ENTRY(0.0441), ENTRY(0.0624), | ^~~~~ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:33:47: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fme7_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 33 | #define ENTRY( n ) (unsigned char) (n * amp_range + 0.5) | ^ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:35:54: note: in expansion of macro 'ENTRY' 35 | ENTRY(0.0221), ENTRY(0.0312), ENTRY(0.0441), ENTRY(0.0624), | ^~~~~ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:33:47: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fme7_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 33 | #define ENTRY( n ) (unsigned char) (n * amp_range + 0.5) | ^ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:36:9: note: in expansion of macro 'ENTRY' 36 | ENTRY(0.0883), ENTRY(0.1249), ENTRY(0.1766), ENTRY(0.2498), | ^~~~~ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:33:47: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fme7_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 33 | #define ENTRY( n ) (unsigned char) (n * amp_range + 0.5) | ^ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:36:24: note: in expansion of macro 'ENTRY' 36 | ENTRY(0.0883), ENTRY(0.1249), ENTRY(0.1766), ENTRY(0.2498), | ^~~~~ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:33:47: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fme7_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 33 | #define ENTRY( n ) (unsigned char) (n * amp_range + 0.5) | ^ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:36:39: note: in expansion of macro 'ENTRY' 36 | ENTRY(0.0883), ENTRY(0.1249), ENTRY(0.1766), ENTRY(0.2498), | ^~~~~ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:33:47: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fme7_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 33 | #define ENTRY( n ) (unsigned char) (n * amp_range + 0.5) | ^ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:36:54: note: in expansion of macro 'ENTRY' 36 | ENTRY(0.0883), ENTRY(0.1249), ENTRY(0.1766), ENTRY(0.2498), | ^~~~~ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:33:47: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fme7_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 33 | #define ENTRY( n ) (unsigned char) (n * amp_range + 0.5) | ^ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:37:9: note: in expansion of macro 'ENTRY' 37 | ENTRY(0.3534), ENTRY(0.4998), ENTRY(0.7070), ENTRY(1.0000) | ^~~~~ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:33:47: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fme7_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 33 | #define ENTRY( n ) (unsigned char) (n * amp_range + 0.5) | ^ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:37:24: note: in expansion of macro 'ENTRY' 37 | ENTRY(0.3534), ENTRY(0.4998), ENTRY(0.7070), ENTRY(1.0000) | ^~~~~ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:33:47: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fme7_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 33 | #define ENTRY( n ) (unsigned char) (n * amp_range + 0.5) | ^ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:37:39: note: in expansion of macro 'ENTRY' 37 | ENTRY(0.3534), ENTRY(0.4998), ENTRY(0.7070), ENTRY(1.0000) | ^~~~~ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:33:47: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fme7_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 33 | #define ENTRY( n ) (unsigned char) (n * amp_range + 0.5) | ^ /tmp/libgme/gme/Nes_Fme7_Apu.cpp:37:54: note: in expansion of macro 'ENTRY' 37 | ENTRY(0.3534), ENTRY(0.4998), ENTRY(0.7070), ENTRY(1.0000) | ^~~~~ In file included from /tmp/libgme/gme/Nes_Namco_Apu.cpp:3: /tmp/libgme/gme/Nes_Namco_Apu.h: In member function 'void Nes_Namco_Apu::volume(double)': /tmp/libgme/gme/Nes_Namco_Apu.h:82:68: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Namco_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 82 | inline void Nes_Namco_Apu::volume( double v ) { synth.volume( 0.10 / osc_count * v ); } | ~~~~~^~~~~~~~~~~ In file included from /tmp/libgme/gme/Nes_Fds_Apu.cpp:3: /tmp/libgme/gme/Nes_Fds_Apu.h: In member function 'void Nes_Fds_Apu::volume(double)': /tmp/libgme/gme/Nes_Fds_Apu.h:74:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fds_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 74 | synth.volume( 0.14 / master_vol_max / vol_max / wave_sample_max * v ); | ~~~~~^~~~~~~~~~~~~~~~ /tmp/libgme/gme/Nes_Fds_Apu.h:74:45: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fds_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 74 | synth.volume( 0.14 / master_vol_max / vol_max / wave_sample_max * v ); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ /tmp/libgme/gme/Nes_Fds_Apu.h:74:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fds_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 74 | synth.volume( 0.14 / master_vol_max / vol_max / wave_sample_max * v ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /tmp/libgme/gme/Nes_Fds_Apu.cpp: In member function 'void Nes_Fds_Apu::reset()': /tmp/libgme/gme/Nes_Fds_Apu.cpp:47:33: warning: arithmetic between different enumeration types 'Nes_Fds_Apu::' and 'Nes_Fds_Apu::' is deprecated [-Wdeprecated-enum-enum-conversion] 47 | write_( io_addr + wave_size + i, 0 ); | ~~~~~~~~^~~~~~~~~~~ /tmp/libgme/gme/Nes_Fds_Apu.cpp:48:33: warning: arithmetic between different enumeration types 'Nes_Fds_Apu::' and 'Nes_Fds_Apu::' is deprecated [-Wdeprecated-enum-enum-conversion] 48 | write_( io_addr + wave_size + i, initial_regs [i] ); | ~~~~~~~~^~~~~~~~~~~ In file included from /tmp/libgme/gme/Nsf_Emu.cpp:11: /tmp/libgme/gme/Nes_Namco_Apu.h: In member function 'void Nes_Namco_Apu::volume(double)': /tmp/libgme/gme/Nes_Namco_Apu.h:82:68: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Namco_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 82 | inline void Nes_Namco_Apu::volume( double v ) { synth.volume( 0.10 / osc_count * v ); } | ~~~~~^~~~~~~~~~~ In file included from /tmp/libgme/gme/Nsf_Emu.cpp:13: /tmp/libgme/gme/Nes_Fme7_Apu.h: In member function 'void Nes_Fme7_Apu::volume(double)': /tmp/libgme/gme/Nes_Fme7_Apu.h:67:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fme7_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 67 | synth.volume( 0.38 / amp_range * v ); // to do: fine-tune | ~~~~~^~~~~~~~~~~ In file included from /tmp/libgme/gme/Nsf_Emu.cpp:14: /tmp/libgme/gme/Nes_Fds_Apu.h: In member function 'void Nes_Fds_Apu::volume(double)': /tmp/libgme/gme/Nes_Fds_Apu.h:74:28: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fds_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 74 | synth.volume( 0.14 / master_vol_max / vol_max / wave_sample_max * v ); | ~~~~~^~~~~~~~~~~~~~~~ /tmp/libgme/gme/Nes_Fds_Apu.h:74:45: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fds_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 74 | synth.volume( 0.14 / master_vol_max / vol_max / wave_sample_max * v ); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ /tmp/libgme/gme/Nes_Fds_Apu.h:74:55: warning: arithmetic between floating-point type 'double' and enumeration type 'Nes_Fds_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 74 | synth.volume( 0.14 / master_vol_max / vol_max / wave_sample_max * v ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /tmp/libgme/gme/Nsf_Emu.cpp: In member function 'const char* Nsf_Emu::init_sound()': /tmp/libgme/gme/Nsf_Emu.cpp:192:52: warning: arithmetic between different enumeration types 'Nes_Apu::' and 'Nes_Namco_Apu::' is deprecated [-Wdeprecated-enum-enum-conversion] 192 | int const count_total = Nes_Apu::osc_count + Nes_Namco_Apu::osc_count + | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/libgme/gme/Sap_Apu.cpp:3: /tmp/libgme/gme/Sap_Apu.h: In member function 'void Sap_Apu_Impl::volume(double)': /tmp/libgme/gme/Sap_Apu.h:61:53: warning: arithmetic between floating-point type 'double' and enumeration type 'Sap_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 61 | void volume( double d ) { synth.volume( 1.0 / Sap_Apu::osc_count / 30 * d ); } | ~~~~^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/libgme/gme/Sap_Emu.h:8, from /tmp/libgme/gme/sap_cpu_io.h:2, from /tmp/libgme/gme/Sap_Cpu.cpp:24: /tmp/libgme/gme/Sap_Apu.h: In member function 'void Sap_Apu_Impl::volume(double)': /tmp/libgme/gme/Sap_Apu.h:61:53: warning: arithmetic between floating-point type 'double' and enumeration type 'Sap_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 61 | void volume( double d ) { synth.volume( 1.0 / Sap_Apu::osc_count / 30 * d ); } | ~~~~^~~~~~~~~~~~~~~~~~~~ In file included from /tmp/libgme/gme/Sap_Emu.h:8, from /tmp/libgme/gme/Sap_Emu.cpp:3: /tmp/libgme/gme/Sap_Apu.h: In member function 'void Sap_Apu_Impl::volume(double)': /tmp/libgme/gme/Sap_Apu.h:61:53: warning: arithmetic between floating-point type 'double' and enumeration type 'Sap_Apu::' is deprecated [-Wdeprecated-enum-float-conversion] 61 | void volume( double d ) { synth.volume( 1.0 / Sap_Apu::osc_count / 30 * d ); } | ~~~~^~~~~~~~~~~~~~~~~~~~ /tmp/libgme/gme/Sap_Emu.cpp: In member function 'void Sap_Emu::cpu_write_(sap_addr_t, int)': /tmp/libgme/gme/Sap_Emu.cpp:380:65: warning: arithmetic between different enumeration types 'Sap_Apu::' and 'Sap_Apu::' is deprecated [-Wdeprecated-enum-enum-conversion] 380 | if ( (addr ^ Sap_Apu::start_addr) <= (Sap_Apu::end_addr - Sap_Apu::start_addr) ) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /tmp/libgme/gme/Sap_Emu.cpp:387:74: warning: arithmetic between different enumeration types 'Sap_Apu::' and 'Sap_Apu::' is deprecated [-Wdeprecated-enum-enum-conversion] 387 | if ( (addr ^ (Sap_Apu::start_addr + 0x10)) <= (Sap_Apu::end_addr - Sap_Apu::start_addr) && | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /tmp/libgme/gme/Spc_Emu.cpp: In member function 'virtual void Spc_Emu::set_tempo_(double)': /tmp/libgme/gme/Spc_Emu.cpp:300:33: warning: arithmetic between floating-point type 'double' and enumeration type 'Snes_Spc::' is deprecated [-Wdeprecated-enum-float-conversion] 300 | apu.set_tempo( (int) (t * apu.tempo_unit) ); /tmp/libgme/gme/Spc_Emu.cpp: In member function 'virtual const char* Spc_Emu::start_track_(int)': /tmp/libgme/gme/Spc_Emu.cpp:309:40: warning: arithmetic between floating-point type 'double' and enumeration type 'SPC_Filter::' is deprecated [-Wdeprecated-enum-float-conversion] 309 | filter.set_gain( (int) (gain() * SPC_Filter::gain_unit) ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ ```
Wohlstand commented 1 month ago

As the project gets compiled with the C++11 mode, then it's no reason to do that's now. But I could apply fixes of these warnings after releasing of the 0.6.4.