Browse Source

Place -Wcast-function-type ignore under >= 10 version check

Signed-off-by: falkTX <falktx@falktx.com>
pull/196/merge
falkTX 1 year ago
parent
commit
340273fac2
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      dgl/src/NanoVG.cpp

+ 2
- 2
dgl/src/NanoVG.cpp View File

@@ -89,7 +89,7 @@ DGL_EXT(PFNGLBLENDFUNCSEPARATEPROC, glBlendFuncSeparate)
static NVGcontext* nvgCreateGL_helper(int flags)
{
#if defined(DISTRHO_OS_WINDOWS)
# ifdef __GNUC__
# if defined(__GNUC__) && (__GNUC__ >= 10)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wcast-function-type"
# endif
@@ -127,7 +127,7 @@ DGL_EXT(PFNGLVERTEXATTRIBPOINTERPROC, glVertexAttribPointer)
DGL_EXT(PFNGLBLENDFUNCSEPARATEPROC, glBlendFuncSeparate)
# undef DGL_EXT
needsInit = false;
# ifdef __GNUC__
# if defined(__GNUC__) && (__GNUC__ >= 10)
# pragma GCC diagnostic pop
# endif
#endif


Loading…
Cancel
Save