Kagamiin / ESFMu

Emulation core for the "ESFM" enhanced OPL3 clone, based on Nuke.YKT's Nuked OPL3 and reverse-engineering efforts from the community
GNU Lesser General Public License v2.1
23 stars 1 forks source link

Suppress compiler warnings from extraneous variables when compiling with inline ASM #19

Closed Kagamiin closed 7 months ago

Kagamiin commented 7 months ago

Before:

$ gcc -Wall -Wextra -o /dev/null -c esfm.c
esfm.c: In function ‘ESFM_process_feedback’:
esfm.c:1760:26: warning: unused variable ‘phase’ [-Wunused-variable]
 1760 |                 uint32_t phase, phase_acc;
      |                          ^~~~~
esfm.c:1757:26: warning: unused variable ‘iter_counter’ [-Wunused-variable]
 1757 |                 uint32_t iter_counter;
      |                          ^~~~~~~~~~~~
esfm.c:1755:35: warning: unused variable ‘wave_last’ [-Wunused-variable]
 1755 |                 int32_t wave_out, wave_last;
      |
$

After:

$ gcc -Wall -Wextra -o /dev/null -c esfm.c
$