From 593ce980c22009e1ca65c8b4b89a3930f9cac2a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 30 Sep 2024 12:42:37 +0200 Subject: [PATCH] Platform: fix -Wzero-as-null-pointer-constant on MinGW. --- src/Magnum/Platform/WindowlessWglApplication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/Platform/WindowlessWglApplication.cpp b/src/Magnum/Platform/WindowlessWglApplication.cpp index 150a63d67..6ff4bb902 100644 --- a/src/Magnum/Platform/WindowlessWglApplication.cpp +++ b/src/Magnum/Platform/WindowlessWglApplication.cpp @@ -75,7 +75,7 @@ WindowlessWglContext::WindowlessWglContext(const Configuration& configuration, G /* Create the window */ _window = CreateWindowW(wc.lpszClassName, L"Magnum Windowless Application", - WS_OVERLAPPEDWINDOW, 0, 0, 32, 32, 0, 0, wc.hInstance, 0); + WS_OVERLAPPEDWINDOW, 0, 0, 32, 32, nullptr, nullptr, wc.hInstance, nullptr); /* Get device context from the newly created window and save the previous one. In case the previous one is null, wglMakeCurrent(null, ...) would