From 885eeb04ed0aca8ad1f7c3461d773602084ed05f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 4 Oct 2020 13:08:12 +0200 Subject: Suppress warnings in release builds --- wscript | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index 9317a87..9b1e616 100644 --- a/wscript +++ b/wscript @@ -72,12 +72,18 @@ def configure(conf): '-Wno-switch-enum', ], 'gcc': [ + '-Wno-inline', '-Wno-padded', + '-Wno-suggest-attribute=const', + '-Wno-suggest-attribute=malloc', + '-Wno-suggest-attribute=pure', '-Wno-switch-enum', ], 'msvc': [ '/wd4061', # enumerator in switch is not explicitly handled '/wd4514', # unreferenced inline function has been removed + '/wd4710', # function not inlined + '/wd4711', # function selected for automatic inline expansion '/wd4820', # padding added after construct '/wd5045', # will insert Spectre mitigation for memory load ], @@ -108,6 +114,7 @@ def configure(conf): ], 'gcc': [ '-Wno-old-style-cast', + '-Wno-suggest-final-methods', ], 'msvc': [ '/wd4355', # 'this' used in base member initializer list @@ -470,7 +477,7 @@ def build(bld): autowaf.set_warnings_as_errors(strict_env) autowaf.add_compiler_flags(strict_env, '*', { 'clang': ['-Wno-padded'], - 'gcc': ['-Wno-padded'], + 'gcc': ['-Wno-padded', '-Wno-suggest-attribute=const'], }) autowaf.add_compiler_flags(strict_env, 'cxx', { 'clang': ['-Wno-documentation-unknown-command'], -- cgit v1.2.1