commit 9efc5ff6e3eb866e6ea893891f3fe3d5a7712d6e parent 6ef3fce69a543f63549eae8fc64e5bf8aca8b35d Author: falkTX <falktx@falktx.com> Date: Fri, 17 Jun 2022 22:06:42 +0100 Ignore a compiler warning Signed-off-by: falkTX <falktx@falktx.com> Diffstat:
M | distrho/src/DistrhoPluginJACK.cpp | | | 10 | +++++++++- |
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/distrho/src/DistrhoPluginJACK.cpp b/distrho/src/DistrhoPluginJACK.cpp @@ -987,7 +987,15 @@ int main(int argc, char* argv[]) if (const HMODULE user32 = LoadLibrary("user32.dll")) { typedef BOOL(WINAPI* SPDA)(void); - if (const SPDA SetProcessDPIAware = (SPDA)GetProcAddress(user32, "SetProcessDPIAware")) + #if defined(__GNUC__) && (__GNUC__ >= 9) + # pragma GCC diagnostic push + # pragma GCC diagnostic ignored "-Wcast-function-type" + #endif + const SPDA SetProcessDPIAware = (SPDA)GetProcAddress(user32, "SetProcessDPIAware"); + #if defined(__GNUC__) && (__GNUC__ >= 9) + # pragma GCC diagnostic pop + #endif + if (SetProcessDPIAware) SetProcessDPIAware(); FreeLibrary(user32); }