1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
https://bugs.gentoo.org/973225
--- a/meson.build
+++ b/meson.build
@@ -13,28 +13,28 @@ add_project_arguments('-D_GNU_SOURCE', language : 'c')
common_include_directories = include_directories('.')
# Keep this in sync with ostree, except remove -Wall (part of Meson
-# warning_level 2) and -Werror=declaration-after-statement
+# warning_level 2) and -Wdeclaration-after-statement
add_project_arguments(
cc.get_supported_arguments([
- '-Werror=shadow',
- '-Werror=empty-body',
- '-Werror=strict-prototypes',
- '-Werror=missing-prototypes',
- '-Werror=implicit-function-declaration',
- '-Werror=pointer-arith',
- '-Werror=init-self',
- '-Werror=missing-declarations',
- '-Werror=return-type',
- '-Werror=overflow',
- '-Werror=int-conversion',
- '-Werror=parenthesis',
- '-Werror=incompatible-pointer-types',
- '-Werror=misleading-indentation',
- '-Werror=missing-include-dirs',
- '-Werror=aggregate-return',
+ '-Wshadow',
+ '-Wempty-body',
+ '-Wstrict-prototypes',
+ '-Wmissing-prototypes',
+ '-Wimplicit-function-declaration',
+ '-Wpointer-arith',
+ '-Winit-self',
+ '-Wmissing-declarations',
+ '-Wreturn-type',
+ '-Woverflow',
+ '-Wint-conversion',
+ '-Wparenthesis',
+ '-Wincompatible-pointer-types',
+ '-Wmisleading-indentation',
+ '-Wmissing-include-dirs',
+ '-Waggregate-return',
# Extra warnings specific to bubblewrap
- '-Werror=switch-default',
+ '-Wswitch-default',
'-Wswitch-enum',
# Deliberately not warning about these, ability to zero-initialize
@@ -46,14 +46,14 @@ add_project_arguments(
)
if (
- cc.has_argument('-Werror=format=2')
- and cc.has_argument('-Werror=format-security')
- and cc.has_argument('-Werror=format-nonliteral')
+ cc.has_argument('-Wformat=2')
+ and cc.has_argument('-Wformat-security')
+ and cc.has_argument('-Wformat-nonliteral')
)
add_project_arguments([
- '-Werror=format=2',
- '-Werror=format-security',
- '-Werror=format-nonliteral',
+ '-Wformat=2',
+ '-Wformat-security',
+ '-Wformat-nonliteral',
], language : 'c')
endif
|