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:
@@ -177,7 +177,7 @@ ifndef FAUDIO
|
||||
FAUDIO := n
|
||||
endif
|
||||
ifndef OPENAL
|
||||
OPENAL := n
|
||||
OPENAL := y
|
||||
endif
|
||||
ifndef FLUIDSYNTH
|
||||
FLUIDSYNTH := y
|
||||
@@ -519,6 +519,9 @@ CFLAGS := $(CFLAGS) `pkg-config --cflags freetype2`
|
||||
|
||||
CXXFLAGS := $(CFLAGS)
|
||||
|
||||
CFLAGS += -Werror=implicit-int -Werror=implicit-function-declaration \
|
||||
-Werror=int-conversion -Werror=strict-prototypes -Werror=old-style-definition
|
||||
|
||||
|
||||
#########################################################################
|
||||
# Create the (final) list of objects to build. #
|
||||
@@ -669,15 +672,15 @@ SNDOBJ := sound.o \
|
||||
snd_lpt_dac.o snd_lpt_dss.o \
|
||||
snd_adlib.o snd_adlibgold.o snd_ad1848.o snd_audiopci.o \
|
||||
snd_ac97_codec.o snd_ac97_via.o \
|
||||
snd_azt2316a.o snd_cs423x.o snd_cmi8x38.o \
|
||||
snd_azt2316a.o snd_cs423x.o \
|
||||
snd_optimc.o snd_cmi8x38.o \
|
||||
snd_cms.o \
|
||||
snd_gus.o \
|
||||
snd_sb.o snd_sb_dsp.o \
|
||||
snd_emu8k.o snd_mpu401.o \
|
||||
snd_sn76489.o snd_ssi2001.o \
|
||||
snd_wss.o \
|
||||
snd_ym7128.o \
|
||||
snd_optimc.o
|
||||
snd_ym7128.o
|
||||
|
||||
VIDOBJ := agpgart.o video.o \
|
||||
vid_table.o \
|
||||
|
||||
@@ -883,7 +883,7 @@ plat_mmap(size_t size, uint8_t executable)
|
||||
}
|
||||
|
||||
void
|
||||
plat_init_rom_paths()
|
||||
plat_init_rom_paths(void)
|
||||
{
|
||||
wchar_t appdata_dir[1024] = { L'\0' };
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ HICON hIcon[256]; /* icon data loaded from resources */
|
||||
char icon_set[256] = ""; /* name of the iconset to be used */
|
||||
|
||||
void
|
||||
win_clear_icon_set()
|
||||
win_clear_icon_set(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -44,7 +44,7 @@ win_clear_icon_set()
|
||||
}
|
||||
|
||||
void
|
||||
win_system_icon_set()
|
||||
win_system_icon_set(void)
|
||||
{
|
||||
int i, x = win_get_system_metrics(SM_CXSMICON, dpi), y = win_get_system_metrics(SM_CYSMICON, dpi);
|
||||
|
||||
@@ -125,7 +125,7 @@ win_get_icons_path(char *path_root)
|
||||
}
|
||||
|
||||
void
|
||||
win_load_icon_set()
|
||||
win_load_icon_set(void)
|
||||
{
|
||||
win_clear_icon_set();
|
||||
win_system_icon_set();
|
||||
|
||||
@@ -246,7 +246,7 @@ joystick_get_device_name(raw_joystick_t *rawjoy, plat_joystick_t *joy, PRID_DEVI
|
||||
}
|
||||
|
||||
void
|
||||
joystick_init()
|
||||
joystick_init(void)
|
||||
{
|
||||
UINT size = 0;
|
||||
atexit(joystick_close);
|
||||
@@ -316,7 +316,7 @@ end_loop:
|
||||
}
|
||||
|
||||
void
|
||||
joystick_close()
|
||||
joystick_close(void)
|
||||
{
|
||||
RAWINPUTDEVICE ridev[2];
|
||||
ridev[0].dwFlags = RIDEV_REMOVE;
|
||||
|
||||
@@ -350,7 +350,7 @@ media_menu_update_mo(int id)
|
||||
}
|
||||
|
||||
static void
|
||||
media_menu_load_submenus()
|
||||
media_menu_load_submenus(void)
|
||||
{
|
||||
memset(index_map, -1, sizeof(index_map));
|
||||
|
||||
@@ -428,7 +428,7 @@ is_valid_mo(int i)
|
||||
}
|
||||
|
||||
void
|
||||
media_menu_reset()
|
||||
media_menu_reset(void)
|
||||
{
|
||||
/* Remove existing entries. */
|
||||
int c = GetMenuItemCount(media_menu);
|
||||
@@ -488,7 +488,7 @@ media_menu_reset()
|
||||
|
||||
/* Initializes the Media menu in the main menu bar. */
|
||||
static void
|
||||
media_menu_main_init()
|
||||
media_menu_main_init(void)
|
||||
{
|
||||
HMENU hMenu;
|
||||
LPWSTR lpMenuName;
|
||||
@@ -510,7 +510,7 @@ media_menu_main_init()
|
||||
}
|
||||
|
||||
void
|
||||
media_menu_init()
|
||||
media_menu_init(void)
|
||||
{
|
||||
/* Initialize the main menu bar menu */
|
||||
media_menu_main_init();
|
||||
|
||||
@@ -438,7 +438,7 @@ render_and_swap(gl_identifiers *gl)
|
||||
* Keeps the thread sleeping until closing.
|
||||
*/
|
||||
static void
|
||||
opengl_fail()
|
||||
opengl_fail(void)
|
||||
{
|
||||
if (window != NULL) {
|
||||
SDL_DestroyWindow(window);
|
||||
|
||||
@@ -240,7 +240,7 @@ load_custom_shaders(const char *path)
|
||||
* @return Shader program identifier.
|
||||
*/
|
||||
GLuint
|
||||
load_default_shaders()
|
||||
load_default_shaders(void)
|
||||
{
|
||||
GLuint vertex_id = glCreateShader(GL_VERTEX_SHADER);
|
||||
GLuint fragment_id = glCreateShader(GL_FRAGMENT_SHADER);
|
||||
|
||||
@@ -230,7 +230,7 @@ settings_listview_select(HWND hdlg, int id, int selection)
|
||||
}
|
||||
|
||||
static void
|
||||
settings_process_messages()
|
||||
settings_process_messages(void)
|
||||
{
|
||||
MSG msg;
|
||||
while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE | PM_NOYIELD)) {
|
||||
@@ -1963,7 +1963,7 @@ win_settings_network_proc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
}
|
||||
|
||||
static void
|
||||
normalize_hd_list()
|
||||
normalize_hd_list(void)
|
||||
{
|
||||
hard_disk_t ihdd[HDD_NUM];
|
||||
int i, j;
|
||||
|
||||
@@ -995,7 +995,7 @@ StatusBarCreate(HWND hwndParent, uintptr_t idStatus, HINSTANCE hInst)
|
||||
}
|
||||
|
||||
void
|
||||
ui_sb_update_text()
|
||||
ui_sb_update_text(void)
|
||||
{
|
||||
uint8_t part = 0xff;
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ enum image_index {
|
||||
};
|
||||
|
||||
void
|
||||
ToolBarLoadIcons()
|
||||
ToolBarLoadIcons(void)
|
||||
{
|
||||
if (!hwndToolbar)
|
||||
return;
|
||||
|
||||
@@ -200,7 +200,7 @@ static int menu_vidapi = -1;
|
||||
static HMENU cur_menu = NULL;
|
||||
|
||||
static void
|
||||
show_render_options_menu()
|
||||
show_render_options_menu(void)
|
||||
{
|
||||
if (vid_api == menu_vidapi)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user