From c737df9c501200c1d997c916b74cd38edf115e1d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 19 Apr 2020 19:46:44 +0200 Subject: Disable pedantic warnings only for shader demo (for GLAD) --- wscript | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'wscript') diff --git a/wscript b/wscript index bf4596d..38fe983 100644 --- a/wscript +++ b/wscript @@ -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'], -- cgit v1.2.1