Skip to content

Commit d9cad2a

Browse files
committed
add more -W options for 'all warnings' option
1 parent 8b347ae commit d9cad2a

10 files changed

Lines changed: 58 additions & 12 deletions

lang/any.gcc.verify.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,14 @@
259259
"enum": [
260260
"unspecified",
261261
"no-warnings",
262-
"all-warnings"
262+
"all-warnings",
263+
"more-strict-warnings"
264+
],
265+
"enumDescriptions": [
266+
"unspecified",
267+
"no warnings",
268+
"all warnings",
269+
"all warnings (strict)"
263270
]
264271
},
265272
"turn-Warning-into-errors": {

lang/arm.gcc.verify.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,16 @@
306306
"type": "string",
307307
"default": "all-warnings",
308308
"enum": [
309+
"unspecified",
309310
"no-warnings",
310-
"all-warnings"
311+
"all-warnings",
312+
"more-strict-warnings"
313+
],
314+
"enumDescriptions": [
315+
"unspecified",
316+
"no warnings",
317+
"all warnings",
318+
"all warnings (strict)"
311319
]
312320
},
313321
"turn-Warning-into-errors": {

lang/arm.llvm.verify.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,16 @@
277277
"type": "string",
278278
"default": "all-warnings",
279279
"enum": [
280+
"unspecified",
280281
"no-warnings",
281-
"all-warnings"
282+
"all-warnings",
283+
"more-strict-warnings"
284+
],
285+
"enumDescriptions": [
286+
"unspecified",
287+
"no warnings",
288+
"all warnings",
289+
"all warnings (strict)"
282290
]
283291
},
284292
"turn-Warning-into-errors": {

lang/mips.mti.gcc.verify.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,16 @@
260260
"type": "string",
261261
"default": "all-warnings",
262262
"enum": [
263+
"unspecified",
263264
"no-warnings",
264-
"all-warnings"
265+
"all-warnings",
266+
"more-strict-warnings"
267+
],
268+
"enumDescriptions": [
269+
"unspecified",
270+
"no warnings",
271+
"all warnings",
272+
"all warnings (strict)"
265273
]
266274
},
267275
"turn-warning-into-errors": {

lang/riscv.gcc.verify.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,16 @@
289289
"type": "string",
290290
"default": "all-warnings",
291291
"enum": [
292+
"unspecified",
292293
"no-warnings",
293-
"all-warnings"
294+
"all-warnings",
295+
"more-strict-warnings"
296+
],
297+
"enumDescriptions": [
298+
"unspecified",
299+
"no warnings",
300+
"all warnings",
301+
"all warnings (strict)"
294302
]
295303
},
296304
"turn-warning-into-errors": {

res/data/models/any.gcc.model.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@
127127
"false": "",
128128
"unspecified": "",
129129
"no-warnings": "-w",
130-
"all-warnings": "-Wall"
130+
"all-warnings": "-Wall",
131+
"more-strict-warnings": "-Wall -Wextra -Wpedantic -Wshadow -Wconversion"
131132
},
132133
"group": [
133134
"c",

res/data/models/arm.gcc.model.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,8 @@
444444
"command": {
445445
"false": "",
446446
"no-warnings": "-w",
447-
"all-warnings": "-Wall"
447+
"all-warnings": "-Wall",
448+
"more-strict-warnings": "-Wall -Wextra -Wpedantic -Wshadow -Wconversion"
448449
}
449450
}
450451
},
@@ -495,7 +496,8 @@
495496
"command": {
496497
"false": "",
497498
"no-warnings": "-w",
498-
"all-warnings": "-Wall"
499+
"all-warnings": "-Wall",
500+
"more-strict-warnings": "-Wall -Wextra -Wpedantic -Wshadow -Wconversion"
499501
}
500502
}
501503
},

res/data/models/arm.llvm.model.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,8 @@
367367
"command": {
368368
"false": "",
369369
"no-warnings": "-w",
370-
"all-warnings": "-Wall"
370+
"all-warnings": "-Wall",
371+
"more-strict-warnings": "-Wall -Wextra -Wpedantic -Wshadow -Wconversion"
371372
}
372373
}
373374
},
@@ -404,7 +405,8 @@
404405
"command": {
405406
"false": "",
406407
"no-warnings": "-w",
407-
"all-warnings": "-Wall"
408+
"all-warnings": "-Wall",
409+
"more-strict-warnings": "-Wall -Wextra -Wpedantic -Wshadow -Wconversion"
408410
}
409411
}
410412
},

res/data/models/mips.mti.gcc.model.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@
6363
"command": {
6464
"false": "",
6565
"no-warnings": "-w",
66-
"all-warnings": "-Wall"
66+
"all-warnings": "-Wall",
67+
"more-strict-warnings": "-Wall -Wextra -Wpedantic -Wshadow -Wconversion"
6768
},
6869
"group": [
6970
"c",

res/data/models/riscv.gcc.model.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@
139139
"command": {
140140
"false": "",
141141
"no-warnings": "-w",
142-
"all-warnings": "-Wall"
142+
"all-warnings": "-Wall",
143+
"more-strict-warnings": "-Wall -Wextra -Wpedantic -Wshadow -Wconversion"
143144
},
144145
"group": [
145146
"c",

0 commit comments

Comments
 (0)