Browse Source

PS2: Ignore warnings from toolchain headers.

The `gsInline.h` header creates `Wdeclaration-after-statement` warnings.
Pierre Wendling 2 years ago
parent
commit
8117bfe5d1
2 changed files with 8 additions and 0 deletions
  1. 4 0
      src/render/ps2/SDL_render_ps2.c
  2. 4 0
      src/video/ps2/SDL_ps2video.h

+ 4 - 0
src/render/ps2/SDL_render_ps2.c

@@ -30,7 +30,11 @@
 #include <gsKit.h>
 #include <dmaKit.h>
 #include <gsToolkit.h>
+
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeclaration-after-statement"
 #include <gsInline.h>
+#pragma GCC diagnostic pop
 
 /* turn black GS Screen */
 #define GS_BLACK GS_SETREG_RGBA(0x00, 0x00, 0x00, 0x80)

+ 4 - 0
src/video/ps2/SDL_ps2video.h

@@ -31,7 +31,11 @@
 #include <dmaKit.h>
 
 #include <gsToolkit.h>
+
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeclaration-after-statement"
 #include <gsInline.h>
+#pragma GCC diagnostic pop
 
 #endif /* SDL_ps2video_h_ */