From be0dc7e2cb43d8105a6b5d5565719d678f50700b Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 20 May 2019 22:12:45 +0000 Subject: [PATCH] Win32: silence a GetProcAddress-related warning. --- src/platform/guiwin.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/platform/guiwin.cpp b/src/platform/guiwin.cpp index 8688d64b..267d05d4 100644 --- a/src/platform/guiwin.cpp +++ b/src/platform/guiwin.cpp @@ -31,6 +31,12 @@ # undef uint32_t #endif +#if defined(__GNUC__) +// Disable bogus warning emitted by GCC on GetProcAddress, since there seems to be no way +// of restructuring the code to easily disable it just at the call site. +#pragma GCC diagnostic ignored "-Wcast-function-type" +#endif + namespace SolveSpace { namespace Platform {