SDL: PS2: Ignore warnings from toolchain headers.

From 8117bfe5d1bba5ad22e2133326ff0ef696026c2f Mon Sep 17 00:00:00 2001
From: Pierre Wendling <[EMAIL REDACTED]>
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 ad25306762d9..5d4f318b8970 100644
--- a/src/render/ps2/SDL_render_ps2.c
+++ b/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)
diff --git a/src/video/ps2/SDL_ps2video.h b/src/video/ps2/SDL_ps2video.h
index 3a380fab097b..7f981bf00093 100644
--- a/src/video/ps2/SDL_ps2video.h
+++ b/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_ */