From 8117bfe5d1bba5ad22e2133326ff0ef696026c2f Mon Sep 17 00:00:00 2001 From: Pierre Wendling Date: Mon, 10 Oct 2022 22:29:31 -0400 Subject: [PATCH] PS2: Ignore warnings from toolchain headers. The `gsInline.h` header creates `Wdeclaration-after-statement` warnings. --- src/render/ps2/SDL_render_ps2.c | 4 ++++ src/video/ps2/SDL_ps2video.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/render/ps2/SDL_render_ps2.c b/src/render/ps2/SDL_render_ps2.c index ad2530676..5d4f318b8 100644 --- a/src/render/ps2/SDL_render_ps2.c +++ b/src/render/ps2/SDL_render_ps2.c @@ -30,7 +30,11 @@ #include #include #include + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeclaration-after-statement" #include +#pragma GCC diagnostic pop /* turn black GS Screen */ #define GS_BLACK GS_SETREG_RGBA(0x00, 0x00, 0x00, 0x80) diff --git a/src/video/ps2/SDL_ps2video.h b/src/video/ps2/SDL_ps2video.h index 3a380fab0..7f981bf00 100644 --- a/src/video/ps2/SDL_ps2video.h +++ b/src/video/ps2/SDL_ps2video.h @@ -31,7 +31,11 @@ #include #include + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeclaration-after-statement" #include +#pragma GCC diagnostic pop #endif /* SDL_ps2video_h_ */