Makefile.mingw corrections and made the code pass much stricter checks (now mandated by Makefile.mignw) to ensure GCC 14 readiness.
This commit is contained in:
@@ -172,7 +172,7 @@ midi_out_device_get_from_internal_name(char *s)
|
||||
}
|
||||
|
||||
void
|
||||
midi_out_device_init()
|
||||
midi_out_device_init(void)
|
||||
{
|
||||
if (devices[midi_output_device_current].device)
|
||||
device_add(devices[midi_output_device_current].device);
|
||||
@@ -290,7 +290,7 @@ midi_in_device_get_from_internal_name(char *s)
|
||||
}
|
||||
|
||||
void
|
||||
midi_in_device_init()
|
||||
midi_in_device_init(void)
|
||||
{
|
||||
if (midi_in_devices[midi_input_device_current].device)
|
||||
device_add(midi_in_devices[midi_input_device_current].device);
|
||||
|
||||
@@ -119,7 +119,7 @@ mt32_check(const char *func, mt32emu_return_code ret, mt32emu_return_code expect
|
||||
}
|
||||
|
||||
int
|
||||
mt32_old_available()
|
||||
mt32_old_available(void)
|
||||
{
|
||||
if (roms_present[0] < 0)
|
||||
roms_present[0] = (rom_present(MT32_OLD_CTRL_ROM) && rom_present(MT32_OLD_PCM_ROM));
|
||||
@@ -127,7 +127,7 @@ mt32_old_available()
|
||||
}
|
||||
|
||||
int
|
||||
mt32_new_available()
|
||||
mt32_new_available(void)
|
||||
{
|
||||
if (roms_present[0] < 0)
|
||||
roms_present[0] = (rom_present(MT32_NEW_CTRL_ROM) && rom_present(MT32_NEW_PCM_ROM));
|
||||
@@ -135,7 +135,7 @@ mt32_new_available()
|
||||
}
|
||||
|
||||
int
|
||||
cm32l_available()
|
||||
cm32l_available(void)
|
||||
{
|
||||
if (roms_present[1] < 0)
|
||||
roms_present[1] = (rom_present(CM32L_CTRL_ROM) && rom_present(CM32L_PCM_ROM));
|
||||
@@ -143,7 +143,7 @@ cm32l_available()
|
||||
}
|
||||
|
||||
int
|
||||
cm32ln_available()
|
||||
cm32ln_available(void)
|
||||
{
|
||||
if (roms_present[1] < 0)
|
||||
roms_present[1] = (rom_present(CM32LN_CTRL_ROM) && rom_present(CM32LN_PCM_ROM));
|
||||
@@ -199,7 +199,7 @@ mt32_stream_int16(int16_t *stream, int len)
|
||||
}
|
||||
|
||||
void
|
||||
mt32_poll()
|
||||
mt32_poll(void)
|
||||
{
|
||||
midi_pos++;
|
||||
if (midi_pos == 48000 / RENDER_RATE) {
|
||||
|
||||
@@ -131,7 +131,7 @@ static int treble_cut[6] = {
|
||||
(int) (0.354 * 16384) /*-3 dB - filter output is at +6 dB*/
|
||||
};
|
||||
|
||||
void adgold_timer_poll();
|
||||
void adgold_timer_poll(void *p);
|
||||
void adgold_update(adgold_t *adgold);
|
||||
|
||||
void
|
||||
|
||||
@@ -2035,37 +2035,37 @@ sb_16_compat_init(const device_t *info)
|
||||
}
|
||||
|
||||
static int
|
||||
sb_awe32_available()
|
||||
sb_awe32_available(void)
|
||||
{
|
||||
return rom_present("roms/sound/awe32.raw");
|
||||
}
|
||||
|
||||
static int
|
||||
sb_32_pnp_available()
|
||||
sb_32_pnp_available(void)
|
||||
{
|
||||
return sb_awe32_available() && rom_present("roms/sound/CT3600 PnP.BIN");
|
||||
}
|
||||
|
||||
static int
|
||||
sb_awe32_pnp_available()
|
||||
sb_awe32_pnp_available(void)
|
||||
{
|
||||
return sb_awe32_available() && rom_present("roms/sound/CT3980 PnP.BIN");
|
||||
}
|
||||
|
||||
static int
|
||||
sb_awe64_value_available()
|
||||
sb_awe64_value_available(void)
|
||||
{
|
||||
return sb_awe32_available() && rom_present("roms/sound/CT4520 PnP.BIN");
|
||||
}
|
||||
|
||||
static int
|
||||
sb_awe64_available()
|
||||
sb_awe64_available(void)
|
||||
{
|
||||
return sb_awe32_available() && rom_present("roms/sound/CT4520 PnP.BIN");
|
||||
}
|
||||
|
||||
static int
|
||||
sb_awe64_gold_available()
|
||||
sb_awe64_gold_available(void)
|
||||
{
|
||||
return sb_awe32_available() && rom_present("roms/sound/CT4540 PnP.BIN");
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ static IXAudio2VoiceCallback callbacks = { &callbacksVtbl };
|
||||
#endif
|
||||
|
||||
void
|
||||
inital()
|
||||
inital(void)
|
||||
{
|
||||
#if defined(_WIN32) && !defined(USE_FAUDIO)
|
||||
if (xaudio2_handle == NULL) {
|
||||
@@ -182,7 +182,7 @@ inital()
|
||||
}
|
||||
|
||||
void
|
||||
closeal()
|
||||
closeal(void)
|
||||
{
|
||||
if (!initialized)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user