From 265b88273e2b87a40dbe08b58e59f1fdcb68d3dd Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 3 Feb 2023 16:14:49 +0100 Subject: [PATCH] Backends: Fixed pragma warning with old GCC. --- backends/imgui_impl_opengl3.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/backends/imgui_impl_opengl3.cpp b/backends/imgui_impl_opengl3.cpp index 322e7a930..0b6fcfe4f 100644 --- a/backends/imgui_impl_opengl3.cpp +++ b/backends/imgui_impl_opengl3.cpp @@ -112,6 +112,7 @@ #endif #if defined(__GNUC__) #pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind #pragma GCC diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' #pragma GCC diagnostic ignored "-Wcast-function-type" // warning: cast between incompatible function types #endif