From cd619937dd1d0dbe4e30e1b72b7a94011b2b9c82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 30 Sep 2024 12:50:37 +0200 Subject: [PATCH] Platform: suppress data-to-function-pointer cast warning on MinGW. --- src/Magnum/Platform/WindowlessWglApplication.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Magnum/Platform/WindowlessWglApplication.cpp b/src/Magnum/Platform/WindowlessWglApplication.cpp index 6ff4bb902..f45e684c2 100644 --- a/src/Magnum/Platform/WindowlessWglApplication.cpp +++ b/src/Magnum/Platform/WindowlessWglApplication.cpp @@ -122,6 +122,9 @@ WindowlessWglContext::WindowlessWglContext(const Configuration& configuration, G /* Get pointer to proper context creation function */ typedef HGLRC(WINAPI*PFNWGLCREATECONTEXTATTRIBSARBPROC)(HDC, HGLRC, const int*); + #ifdef CORRADE_TARGET_GCC + __extension__ /* http://web.archive.org/web/20160826013457/http://www.mr-edd.co.uk/blog/supressing_gcc_warnings */ + #endif const PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB = reinterpret_cast( wglGetProcAddress(reinterpret_cast("wglCreateContextAttribsARB"))); /* Request debug context if GpuValidation is enabled either via the