aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-02 23:13:52 +0200
committerDavid Robillard <d@drobilla.net>2020-07-02 23:13:52 +0200
commitf53cdd7792ad0b0dc7b98653811f820065e87a31 (patch)
tree0eabcbb41ce1fff18e196b3ff3d59f47bafe9a25
parenteb79d76891346d3e9101be8667afe98051fdbb58 (diff)
Disable function type cast warnings with MinGW
Unfortunately doing this is necessary to use modern GL on Windows.
-rw-r--r--wscript2
1 files changed, 2 insertions, 0 deletions
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',