diff options
author | David Robillard <d@drobilla.net> | 2020-04-19 19:46:44 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-04-19 19:46:44 +0200 |
commit | c737df9c501200c1d997c916b74cd38edf115e1d (patch) | |
tree | b54feff157ae1e1e9c63b3d1df3dc232813bc35b | |
parent | 14e959b06b5f167b0406772fc0ee8e2111eb4613 (diff) | |
download | pugl-c737df9c501200c1d997c916b74cd38edf115e1d.tar.gz pugl-c737df9c501200c1d997c916b74cd38edf115e1d.tar.bz2 pugl-c737df9c501200c1d997c916b74cd38edf115e1d.zip |
Disable pedantic warnings only for shader demo (for GLAD)
-rw-r--r-- | wscript | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -347,6 +347,7 @@ def build(bld): target = 'shaders/%s' % s) if bld.env.HAVE_GL: + glad_cflags = ['-Wno-pedantic'] if not bld.env.MSVC_COMPILER else [] build_example('pugl_embed_demo', ['examples/pugl_embed_demo.c'], platform, 'gl', uselib=['GL', 'M']) build_example('pugl_window_demo', ['examples/pugl_window_demo.c'], @@ -357,7 +358,9 @@ def build(bld): build_example('pugl_shader_demo', ['examples/pugl_shader_demo.c', 'examples/glad/glad.c'], - platform, 'gl', uselib=['DL', 'GL', 'M']) + platform, 'gl', + cflags=glad_cflags, + uselib=['DL', 'GL', 'M']) if bld.env.HAVE_CAIRO: build_example('pugl_cairo_demo', ['examples/pugl_cairo_demo.c'], |