From f53cdd7792ad0b0dc7b98653811f820065e87a31 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 2 Jul 2020 23:13:52 +0200 Subject: Disable function type cast warnings with MinGW Unfortunately doing this is necessary to use modern GL on Windows. --- wscript | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index 2cf68dd..766a56a 100644 --- a/wscript +++ b/wscript @@ -71,6 +71,8 @@ def configure(conf): else: if Options.options.ultra_strict: append_cflags(['-Wunused-parameter', '-Wno-pedantic']) + if conf.env.TARGET_PLATFORM == "win32": + append_cflags(['-Wno-cast-function-type']) if conf.env.TARGET_PLATFORM == 'darwin': append_cflags(['-DGL_SILENCE_DEPRECATION', -- cgit v1.2.1