Browse Source

Ignore a compiler warning

Signed-off-by: falkTX <falktx@falktx.com>
pull/321/head
falkTX 2 years ago
parent
commit
9efc5ff6e3
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 10 additions and 2 deletions
  1. +1
    -1
      dgl/src/pugl-upstream
  2. +9
    -1
      distrho/src/DistrhoPluginJACK.cpp

+ 1
- 1
dgl/src/pugl-upstream

@@ -1 +1 @@
Subproject commit 24a1418b464e43f7f79af0d815c177121473bf1e
Subproject commit b10e137701cb34619f71e282fa3fa6e475c1a2b6

+ 9
- 1
distrho/src/DistrhoPluginJACK.cpp View File

@@ -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);
}


Loading…
Cancel
Save