From 2715ed0cadbe5a0d83a0cf810f70916a897f03c4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 May 2020 06:13:34 +0300 Subject: Disable warning conditionally-supported for opengl function pointers --- src/render/openglx/mglxinit.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/render/openglx/mglxinit.cpp') diff --git a/src/render/openglx/mglxinit.cpp b/src/render/openglx/mglxinit.cpp index d83872871..23e1553c2 100644 --- a/src/render/openglx/mglxinit.cpp +++ b/src/render/openglx/mglxinit.cpp @@ -34,6 +34,8 @@ void Glx::initFunctions() { +PRAGMA49(GCC diagnostic push) +PRAGMA49(GCC diagnostic ignored "-Wconditionally-supported") assignFunction(glXCreateContext) assignFunction(glXGetCurrentContext) assignFunctionARB(glXCreateContextAttribs) @@ -41,6 +43,7 @@ void Glx::initFunctions() assignFunction(glXDestroyContext) assignFunction(glXMakeCurrent) assignFunction(glXSwapBuffers) +PRAGMA49(GCC diagnostic pop) } #endif // defined(USE_OPENGL) && defined(USE_X11) -- cgit v1.2.3-70-g09d2