Skip to content

Commit

Permalink
Ignore warnings about unknown/unused warning flags
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMatjaz committed Dec 16, 2024
1 parent 817f18a commit f32fa3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
"generator": "Unix Makefiles",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc",
"CMAKE_C_FLAGS_INIT": "-Wall -Wextra -pedantic -Wconversion -Wsign-conversion -Wdouble-promotion -Wswitch-default -Wswitch-enum -Wuninitialized -Wunused-variable -Wpacked -Wshadow -Waggregate-return -Wformat-security -Wlogical-not-parentheses -Wmissing-declarations -Wnull-dereference -Wduplicated-cond -Wno-padded -Wno-type-limits -Wno-float-equal",
"CMAKE_C_FLAGS_INIT": "-Wall -Wextra -pedantic -Wconversion -Wsign-conversion -Wdouble-promotion -Wswitch-default -Wswitch-enum -Wuninitialized -Wunused-variable -Wpacked -Wshadow -Waggregate-return -Wformat-security -Wlogical-not-parentheses -Wmissing-declarations -Wnull-dereference -Wduplicated-cond -Wno-padded -Wno-type-limits -Wno-float-equal -Wno-unused-command-line-argument",
"CMAKE_C_FLAGS_DEBUG": "-O0 -g3 -DDEBUG=1",
"CMAKE_C_FLAGS_RELEASE": "-O3 -Werror",
"CMAKE_C_FLAGS_MINSIZEREL": "-Os -s -Werror"
"CMAKE_C_FLAGS_MINSIZEREL": "-Os -Werror"
}
},
{
Expand All @@ -33,7 +33,7 @@
"generator": "Unix Makefiles",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang",
"CMAKE_C_FLAGS_INIT": "-Weverything -Wno-unsafe-buffer-usage",
"CMAKE_C_FLAGS_INIT": "-Weverything -Wno-unsafe-buffer-usage -Wno-unknown-warning-option",
"CMAKE_C_FLAGS_DEBUG": "-O0 -g3 -coverage -DDEBUG=1",
"CMAKE_C_FLAGS_RELEASE": "-O3 -Werror",
"CMAKE_C_FLAGS_MINSIZEREL": "-Os -Werror"
Expand Down

0 comments on commit f32fa3e

Please sign in to comment.