aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-04 13:08:12 +0200
committerDavid Robillard <d@drobilla.net>2020-10-04 14:27:00 +0200
commit885eeb04ed0aca8ad1f7c3461d773602084ed05f (patch)
treeab46fd9959189e21dec79cda8804a2a87c0086eb /wscript
parent43345a03d77664136f4ac1e2074151cbef4be1bb (diff)
downloadpugl-885eeb04ed0aca8ad1f7c3461d773602084ed05f.tar.gz
pugl-885eeb04ed0aca8ad1f7c3461d773602084ed05f.tar.bz2
pugl-885eeb04ed0aca8ad1f7c3461d773602084ed05f.zip
Suppress warnings in release builds
Diffstat (limited to 'wscript')
-rw-r--r--wscript9
1 files changed, 8 insertions, 1 deletions
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'],