diff options
author | David Robillard <d@drobilla.net> | 2020-10-04 13:08:12 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-04 14:27:00 +0200 |
commit | 885eeb04ed0aca8ad1f7c3461d773602084ed05f (patch) | |
tree | ab46fd9959189e21dec79cda8804a2a87c0086eb | |
parent | 43345a03d77664136f4ac1e2074151cbef4be1bb (diff) |
Suppress warnings in release builds
-rw-r--r-- | wscript | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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'], |