forked from vadz/gcc-warnings-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwarnings.cpp
246 lines (246 loc) · 7 KB
/
warnings.cpp
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
HANDLE_GCC_WARNING(abi)
#if CHECK_GCC_VERSION(4,8)
HANDLE_GCC_WARNING(abi-tag)
#endif // 4.8
HANDLE_GCC_WARNING(address)
HANDLE_GCC_WARNING(aggregate-return)
#if CHECK_GCC_VERSION(7,1)
HANDLE_GCC_WARNING(alloc-zero)
#endif // 7.1
#if CHECK_GCC_VERSION(7,1)
HANDLE_GCC_WARNING(alloca)
#endif // 7.1
#if CHECK_GCC_VERSION(10,1)
HANDLE_GCC_WARNING(arith-conversion)
#endif // 10.1
HANDLE_GCC_WARNING(array-bounds)
HANDLE_GCC_WARNING(builtin-macro-redefined)
HANDLE_GCC_WARNING(cast-align)
#if CHECK_GCC_VERSION(8,1)
HANDLE_GCC_WARNING(cast-align=strict)
#endif // 8.1
HANDLE_GCC_WARNING(cast-qual)
HANDLE_GCC_WARNING(char-subscripts)
#if CHECK_GCC_VERSION(9,1)
HANDLE_GCC_WARNING(chkp)
#endif // 9.1
#if CHECK_GCC_VERSION(8,1)
HANDLE_GCC_WARNING(class-memaccess)
#endif // 8.1
HANDLE_GCC_WARNING(clobbered)
#if CHECK_GCC_VERSION(10,1)
HANDLE_GCC_WARNING(comma-subscript)
#endif // 10.1
HANDLE_GCC_WARNING(comment)
#if CHECK_GCC_VERSION(4,9)
HANDLE_GCC_WARNING(conditionally-supported)
#endif // 4.9
HANDLE_GCC_WARNING(conversion)
#if CHECK_GCC_VERSION(11,1)
HANDLE_GCC_WARNING(ctad-maybe-unsupported)
#endif // 11.1
HANDLE_GCC_WARNING(ctor-dtor-privacy)
#if CHECK_GCC_VERSION(4,9)
HANDLE_GCC_WARNING(date-time)
#endif // 4.9
#if CHECK_GCC_VERSION(4,7)
HANDLE_GCC_WARNING(delete-non-virtual-dtor)
#endif // 4.7
#if CHECK_GCC_VERSION(9,1)
HANDLE_GCC_WARNING(deprecated-copy)
#endif // 9.1
#if CHECK_GCC_VERSION(9,1)
HANDLE_GCC_WARNING(deprecated-copy-dtor)
#endif // 9.1
#if CHECK_GCC_VERSION(11,1)
HANDLE_GCC_WARNING(deprecated-enum-enum-conversion)
#endif // 11.1
#if CHECK_GCC_VERSION(11,1)
HANDLE_GCC_WARNING(deprecated-enum-float-conversion)
#endif // 11.1
HANDLE_GCC_WARNING(disabled-optimization)
HANDLE_GCC_WARNING(double-promotion)
#if CHECK_GCC_VERSION(7,1)
HANDLE_GCC_WARNING(duplicated-branches)
#endif // 7.1
#if CHECK_GCC_VERSION(6,1)
HANDLE_GCC_WARNING(duplicated-cond)
#endif // 6.1
HANDLE_GCC_WARNING(empty-body)
HANDLE_GCC_WARNING(endif-labels)
HANDLE_GCC_WARNING(enum-compare)
#if CHECK_GCC_VERSION(8,1)
HANDLE_GCC_WARNING(extra-semi)
#endif // 8.1
HANDLE_GCC_WARNING(float-equal)
HANDLE_GCC_WARNING(format)
HANDLE_GCC_WARNING(format-contains-nul)
HANDLE_GCC_WARNING(format-extra-args)
HANDLE_GCC_WARNING(format-nonliteral)
HANDLE_GCC_WARNING(format-security)
#if CHECK_GCC_VERSION(5,1)
HANDLE_GCC_WARNING(format-signedness)
#endif // 5.1
#if CHECK_GCC_VERSION(4,7)
HANDLE_GCC_WARNING(format-zero-length)
#endif // 4.7
#if CHECK_GCC_VERSION(11,1)
HANDLE_GCC_WARNING(hsa)
#endif // 11.1
HANDLE_GCC_WARNING(ignored-qualifiers)
HANDLE_GCC_WARNING(init-self)
HANDLE_GCC_WARNING(inline)
#if CHECK_GCC_VERSION(11,1)
HANDLE_GCC_WARNING(invalid-imported-macros)
#endif // 11.1
HANDLE_GCC_WARNING(invalid-pch)
#if CHECK_GCC_VERSION(4,8)
HANDLE_GCC_WARNING(literal-suffix)
#endif // 4.8
#if CHECK_GCC_VERSION(6,1)
HANDLE_GCC_WARNING(logical-op)
#endif // 6.1
HANDLE_GCC_WARNING(long-long)
HANDLE_GCC_WARNING(main)
#if CHECK_GCC_VERSION(4,7)
HANDLE_GCC_WARNING(maybe-uninitialized)
#endif // 4.7
#if CHECK_GCC_VERSION(10,1)
HANDLE_GCC_WARNING(mismatched-tags)
#endif // 10.1
HANDLE_GCC_WARNING(missing-braces)
HANDLE_GCC_WARNING(missing-declarations)
HANDLE_GCC_WARNING(missing-field-initializers)
HANDLE_GCC_WARNING(missing-format-attribute)
HANDLE_GCC_WARNING(missing-include-dirs)
HANDLE_GCC_WARNING(missing-noreturn)
HANDLE_GCC_WARNING(multichar)
#if CHECK_GCC_VERSION(6,1)
HANDLE_GCC_WARNING(multiple-inheritance)
#endif // 6.1
#if CHECK_GCC_VERSION(6,1)
HANDLE_GCC_WARNING(namespaces)
#endif // 6.1
#if CHECK_GCC_VERSION(4,7)
HANDLE_GCC_WARNING(narrowing)
#endif // 4.7
HANDLE_GCC_WARNING(noexcept)
#if CHECK_GCC_VERSION(7,1)
HANDLE_GCC_WARNING(noexcept-type)
#endif // 7.1
HANDLE_GCC_WARNING(non-virtual-dtor)
#if CHECK_GCC_VERSION(4,7)
HANDLE_GCC_WARNING(nonnull)
#endif // 4.7
#if CHECK_GCC_VERSION(6,1)
HANDLE_GCC_WARNING(null-dereference)
#endif // 6.1
HANDLE_GCC_WARNING(old-style-cast)
HANDLE_GCC_WARNING(overlength-strings)
HANDLE_GCC_WARNING(overloaded-virtual)
HANDLE_GCC_WARNING(packed)
HANDLE_GCC_WARNING(packed-bitfield-compat)
HANDLE_GCC_WARNING(padded)
HANDLE_GCC_WARNING(parentheses)
#if CHECK_GCC_VERSION(9,1)
HANDLE_GCC_WARNING(pessimizing-move)
#endif // 9.1
HANDLE_GCC_WARNING(pointer-arith)
HANDLE_GCC_WARNING(redundant-decls)
#if CHECK_GCC_VERSION(10,1)
HANDLE_GCC_WARNING(redundant-tags)
#endif // 10.1
#if CHECK_GCC_VERSION(7,1)
HANDLE_GCC_WARNING(register)
#endif // 7.1
HANDLE_GCC_WARNING(reorder)
#if CHECK_GCC_VERSION(7,1)
HANDLE_GCC_WARNING(restrict)
#endif // 7.1
HANDLE_GCC_WARNING(return-type)
HANDLE_GCC_WARNING(sequence-point)
HANDLE_GCC_WARNING(shadow)
#if CHECK_GCC_VERSION(6,1)
HANDLE_GCC_WARNING(shift-negative-value)
#endif // 6.1
HANDLE_GCC_WARNING(sign-compare)
HANDLE_GCC_WARNING(sign-conversion)
HANDLE_GCC_WARNING(sign-promo)
HANDLE_GCC_WARNING(stack-protector)
HANDLE_GCC_WARNING(strict-aliasing)
HANDLE_GCC_WARNING(strict-null-sentinel)
HANDLE_GCC_WARNING(strict-overflow)
#if CHECK_GCC_VERSION(10,1)
HANDLE_GCC_WARNING(string-compare)
#endif // 10.1
#if CHECK_GCC_VERSION(8,1)
HANDLE_GCC_WARNING(stringop-truncation)
#endif // 8.1
#if CHECK_GCC_VERSION(8,1)
HANDLE_GCC_WARNING(suggest-attribute=cold)
#endif // 8.1
HANDLE_GCC_WARNING(suggest-attribute=const)
#if CHECK_GCC_VERSION(4,8)
HANDLE_GCC_WARNING(suggest-attribute=format)
#endif // 4.8
#if CHECK_GCC_VERSION(8,1)
HANDLE_GCC_WARNING(suggest-attribute=malloc)
#endif // 8.1
HANDLE_GCC_WARNING(suggest-attribute=noreturn)
HANDLE_GCC_WARNING(suggest-attribute=pure)
#if CHECK_GCC_VERSION(5,1)
HANDLE_GCC_WARNING(suggest-final-methods)
#endif // 5.1
#if CHECK_GCC_VERSION(5,1)
HANDLE_GCC_WARNING(suggest-final-types)
#endif // 5.1
#if CHECK_GCC_VERSION(5,1)
HANDLE_GCC_WARNING(suggest-override)
#endif // 5.1
HANDLE_GCC_WARNING(switch)
HANDLE_GCC_WARNING(switch-default)
HANDLE_GCC_WARNING(switch-enum)
HANDLE_GCC_WARNING(synth)
HANDLE_GCC_WARNING(system-headers)
#if CHECK_GCC_VERSION(6,1)
HANDLE_GCC_WARNING(templates)
#endif // 6.1
HANDLE_GCC_WARNING(trampolines)
HANDLE_GCC_WARNING(trigraphs)
HANDLE_GCC_WARNING(type-limits)
HANDLE_GCC_WARNING(undef)
HANDLE_GCC_WARNING(uninitialized)
HANDLE_GCC_WARNING(unknown-pragmas)
HANDLE_GCC_WARNING(unreachable-code)
HANDLE_GCC_WARNING(unsafe-loop-optimizations)
HANDLE_GCC_WARNING(unused)
HANDLE_GCC_WARNING(unused-but-set-parameter)
HANDLE_GCC_WARNING(unused-but-set-variable)
HANDLE_GCC_WARNING(unused-function)
HANDLE_GCC_WARNING(unused-label)
#if CHECK_GCC_VERSION(4,7)
HANDLE_GCC_WARNING(unused-local-typedefs)
#endif // 4.7
HANDLE_GCC_WARNING(unused-macros)
HANDLE_GCC_WARNING(unused-parameter)
HANDLE_GCC_WARNING(unused-value)
HANDLE_GCC_WARNING(unused-variable)
#if CHECK_GCC_VERSION(4,8)
HANDLE_GCC_WARNING(useless-cast)
#endif // 4.8
HANDLE_GCC_WARNING(variadic-macros)
#if CHECK_GCC_VERSION(4,7)
HANDLE_GCC_WARNING(vector-operation-performance)
#endif // 4.7
#if CHECK_GCC_VERSION(6,1)
HANDLE_GCC_WARNING(virtual-inheritance)
#endif // 6.1
HANDLE_GCC_WARNING(vla)
#if CHECK_GCC_VERSION(10,1)
HANDLE_GCC_WARNING(volatile)
#endif // 10.1
HANDLE_GCC_WARNING(volatile-register-var)
HANDLE_GCC_WARNING(write-strings)
#if CHECK_GCC_VERSION(4,7)
HANDLE_GCC_WARNING(zero-as-null-pointer-constant)
#endif // 4.7