Win32: silence a GetProcAddress-related warning.

pull/420/head
whitequark 2019-05-20 22:12:45 +00:00
parent e11e23483d
commit be0dc7e2cb
1 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,12 @@
# undef uint32_t # undef uint32_t
#endif #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 SolveSpace {
namespace Platform { namespace Platform {