Browse Source

Backends: Win32: Fixed warning with old MinGW/GCC versions.

ocornut 1 year ago
parent
commit
c7df9c7121
1 changed files with 1 additions and 0 deletions
  1. 1 0
      backends/imgui_impl_win32.cpp

+ 1 - 0
backends/imgui_impl_win32.cpp

@@ -98,6 +98,7 @@ typedef DWORD(WINAPI* PFN_XInputGetState)(DWORD, XINPUT_STATE*);
 #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 "-Wcast-function-type"       // warning: cast between incompatible function types (for loader)
 #endif