forked from AuroraMiddleware/gtk
Merge branch 'wip/otte/for-master' into 'master'
build: Actually use the extra warnings See merge request GNOME/gtk!4157
This commit is contained in:
commit
27350ad71b
@ -228,7 +228,9 @@ endif
|
||||
# Use a subset of compiler flags
|
||||
demo_cflags = []
|
||||
foreach flag: common_cflags
|
||||
if flag not in ['-Werror=missing-prototypes', '-Werror=missing-declarations', '-fvisibility=hidden']
|
||||
if flag not in ['-Werror=missing-prototypes', '-Wmissing-prototypes',
|
||||
'-Werror=missing-declarations', '-Wmissing-declarations',
|
||||
'-fvisibility=hidden']
|
||||
demo_cflags += flag
|
||||
endif
|
||||
endforeach
|
||||
|
38
meson.build
38
meson.build
@ -294,25 +294,25 @@ elif cc.get_id() == 'gcc' or cc.get_id() == 'clang'
|
||||
]
|
||||
|
||||
extra_warnings = [
|
||||
'-Werror=address',
|
||||
'-Werror=array-bounds',
|
||||
'-Werror=empty-body',
|
||||
'-Werror=implicit',
|
||||
'-Werror=implicit-fallthrough',
|
||||
'-Werror=init-self',
|
||||
'-Werror=int-to-pointer-cast',
|
||||
'-Werror=main',
|
||||
'-Werror=missing-braces',
|
||||
'-Werror=missing-declarations',
|
||||
'-Werror=missing-prototypes',
|
||||
'-Werror=nonnull',
|
||||
'-Werror=pointer-to-int-cast',
|
||||
'-Werror=redundant-decls',
|
||||
'-Werror=return-type',
|
||||
'-Werror=sequence-point',
|
||||
'-Werror=trigraphs',
|
||||
'-Werror=vla',
|
||||
'-Werror=write-strings',
|
||||
'address',
|
||||
'array-bounds',
|
||||
'empty-body',
|
||||
'implicit',
|
||||
'implicit-fallthrough',
|
||||
'init-self',
|
||||
'int-to-pointer-cast',
|
||||
'main',
|
||||
'missing-braces',
|
||||
'missing-declarations',
|
||||
'missing-prototypes',
|
||||
'nonnull',
|
||||
'pointer-to-int-cast',
|
||||
'redundant-decls',
|
||||
'return-type',
|
||||
'sequence-point',
|
||||
'trigraphs',
|
||||
'vla',
|
||||
'write-strings',
|
||||
]
|
||||
|
||||
if get_option('buildtype').startswith('debug')
|
||||
|
@ -44,7 +44,9 @@ is_debug = get_option('buildtype').startswith('debug')
|
||||
test_cargs = []
|
||||
|
||||
foreach flag: common_cflags
|
||||
if flag not in ['-Werror=missing-prototypes', '-Werror=missing-declarations', '-fvisibility=hidden']
|
||||
if flag not in ['-Werror=missing-prototypes', '-Wmissing-prototypes',
|
||||
'-Werror=missing-declarations', '-Wmissing-declarations',
|
||||
'-fvisibility=hidden']
|
||||
test_cargs += flag
|
||||
endif
|
||||
endforeach
|
||||
|
@ -152,7 +152,9 @@ if os_unix
|
||||
endif
|
||||
|
||||
foreach flag: common_cflags
|
||||
if flag not in ['-Werror=missing-prototypes', '-Werror=missing-declarations', '-fvisibility=hidden']
|
||||
if flag not in ['-Werror=missing-prototypes', '-Wmissing-prototypes',
|
||||
'-Werror=missing-declarations', '-Wmissing-declarations',
|
||||
'-fvisibility=hidden']
|
||||
test_cargs += flag
|
||||
endif
|
||||
endforeach
|
||||
|
@ -2,7 +2,9 @@
|
||||
|
||||
reftest_cflags = []
|
||||
foreach flag: common_cflags
|
||||
if flag not in ['-Werror=missing-prototypes', '-Werror=missing-declarations', '-fvisibility=hidden']
|
||||
if flag not in ['-Werror=missing-prototypes', '-Wmissing-prototypes',
|
||||
'-Werror=missing-declarations', '-Wmissing-declarations',
|
||||
'-fvisibility=hidden']
|
||||
reftest_cflags += flag
|
||||
endif
|
||||
endforeach
|
||||
|
Loading…
Reference in New Issue
Block a user