Skip to content

Commit 6e95459

Browse files
committed
Add lots more warnings to flags-unix
float-equal is added as an error and strict-prototypes was upgraded to an error. The former prohibits an operation that is absolutely nonsensical anyway and the latter makes sure prototypes are always properly declared in C to avoid nasty old-style functions.
1 parent 4e5ac0f commit 6e95459

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake-init/templates/common/CMakePresets.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"name": "flags-unix",
5858
"hidden": true,
5959
"cacheVariables": {
60-
"CMAKE_C{if cpp}XX{end}_FLAGS": "-Wall -Wextra -Wpedantic{if c} -Wstrict-prototypes{end}"
60+
"CMAKE_C{if cpp}XX{end}_FLAGS": "-Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -Wcast-qual -Wshadow -Wformat=2 -Wundef -Werror=float-equal{if c} -Werror=strict-prototypes -Wwrite-strings{end}"
6161
}
6262
},
6363
{

0 commit comments

Comments
 (0)