From 043ccbf45f9122b479f5bfc90b4b84b031798a14 Mon Sep 17 00:00:00 2001 From: kub Date: Fri, 14 Oct 2022 21:22:33 +0000 Subject: [PATCH] fix some gcc warnings --- pico/draw2.c | 4 ++-- pico/pico.h | 2 +- pico/pico_int.h | 2 +- platform/gp2x/plat.h | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pico/draw2.c b/pico/draw2.c index f3c286f7..9a491ea8 100644 --- a/pico/draw2.c +++ b/pico/draw2.c @@ -29,7 +29,7 @@ static u32 HighCache2A[2*41*(TILE_ROWS+1)+1+1]; // caches for high layers static u32 HighCache2B[2*41*(TILE_ROWS+1)+1+1]; unsigned short *PicoCramHigh=PicoMem.cram; // pointer to CRAM buff (0x40 shorts), converted to native device color (works only with 16bit for now) -void (*PicoPrepareCram)()=0; // prepares PicoCramHigh for renderer to use +void (*PicoPrepareCram)(void) = NULL; // prepares PicoCramHigh for renderer to use // stuff available in asm: @@ -711,7 +711,7 @@ static void DrawDisplayFull(void) } -PICO_INTERNAL void PicoFrameFull() +PICO_INTERNAL void PicoFrameFull(void) { pprof_start(draw); diff --git a/pico/pico.h b/pico/pico.h index 3675f96f..cb4ebb54 100644 --- a/pico/pico.h +++ b/pico/pico.h @@ -238,7 +238,7 @@ void PicoDrawSetInternalBuf(void *dest, int line_increment); // draw2.c // stuff below is optional extern unsigned short *PicoCramHigh; // pointer to CRAM buff (0x40 shorts), converted to native device color (works only with 16bit for now) -extern void (*PicoPrepareCram)(); // prepares PicoCramHigh for renderer to use +extern void (*PicoPrepareCram)(void);// prepares PicoCramHigh for renderer to use // pico.c (32x) #ifndef NO_32X diff --git a/pico/pico_int.h b/pico/pico_int.h index d64c6cc6..0406dd50 100644 --- a/pico/pico_int.h +++ b/pico/pico_int.h @@ -710,7 +710,7 @@ extern u32 VdpSATCache[128]; // draw2.c void PicoDraw2SetOutBuf(void *dest, int incr); void PicoDraw2Init(void); -PICO_INTERNAL void PicoFrameFull(); +PICO_INTERNAL void PicoFrameFull(void); // mode4.c void PicoFrameStartSMS(void); diff --git a/platform/gp2x/plat.h b/platform/gp2x/plat.h index 66acf3f8..bb462878 100644 --- a/platform/gp2x/plat.h +++ b/platform/gp2x/plat.h @@ -19,7 +19,7 @@ void gp2x_memset_all_buffers(int offset, int byte, int len); void vid_mmsp2_init(void); void vid_mmsp2_finish(void); -void vid_pollux_init(); -void vid_pollux_finish(); +void vid_pollux_init(void); +void vid_pollux_finish(void); void gp2x_menu_init(void); -- 2.39.5