Skip to content

Commit

Permalink
Use aggressive flags to catch issues
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed Oct 6, 2023
1 parent 200de1b commit f1d91d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/GzSetCompilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ macro(_gz_setup_gcc_or_clang)
CUSTOM_ALL_FLAGS
-Wall -Wextra -Wno-long-long -Wno-unused-value -Wfloat-equal
-Wshadow -Winit-self -Wswitch-default -Wmissing-include-dirs -pedantic
-Wlifetime -Wformat=2 -Wold-style-cast -Woverloaded-virtual -Wduplicated-cond
-Wduplicated-branches -Wlogical-op -Wnull-dereference -Wnon-virtual-dtor
-Wimplicit-fallthrough
)

# -ggdb3: Produce comprehensive debug information that can be utilized by gdb
Expand Down

0 comments on commit f1d91d4

Please sign in to comment.