Skip to content

Commit 554daa9

Browse files
committed
Fixx GCC 15 compilation issues
1 parent d4d40a7 commit 554daa9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Makefile.ps2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ LDFLAGS += -L$(PS2DEV)/gsKit/lib -L$(PS2SDK)/ports/lib -L.
9494
# Lib cdvd is needed to get proper time
9595
LIBS += -lpatches -lgskit -ldmakit -lps2_drivers -lz -lelf-loader
9696

97-
CFLAGS = $(OPTIMIZE_LV) $(DISABLE_WARNINGS) $(DEFINES) -DPS2 -fsingle-precision-constant
97+
CFLAGS = $(OPTIMIZE_LV) $(DISABLE_WARNINGS) $(DEFINES) -DPS2 -fsingle-precision-constant -ffast-math
9898
ASFLAGS = $(CFLAGS)
9999

100100
EE_OBJS += $(OBJ)

Makefile.ps2.salamander

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ endif
2121

2222
INCDIR = -Ilibretro-common/include
2323
INCDIR += -I$(PS2SDK)/ports/include
24-
CFLAGS = $(OPTIMIZE_LV) $(DISABLE_WARNINGS) -fsingle-precision-constant
24+
CFLAGS = $(OPTIMIZE_LV) $(DISABLE_WARNINGS) -fsingle-precision-constant -ffast-math
2525
ASFLAGS = $(CFLAGS)
2626

2727
RARCH_DEFINES += -DPS2 -DIS_SALAMANDER -DRARCH_CONSOLE

gfx/drivers/ps2_gfx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ font_renderer_t ps2_font = {
468468
*/
469469

470470
/* PRIVATE METHODS */
471-
static int vsync_handler(void)
471+
static int vsync_handler(int reason)
472472
{
473473
iSignalSema(vsync_sema_id);
474474

0 commit comments

Comments
 (0)