local.mk.example: add example for -Werror [ci skip] #10178

This commit is contained in:
Daniel Hahler 2019-06-10 17:20:41 +02:00 committed by Justin M. Keyes
parent ce90a19abd
commit 6fe430f582

View File

@ -7,6 +7,9 @@
# These CFLAGS can be used in addition to those specified in CMakeLists.txt:
# CMAKE_EXTRA_FLAGS="-DCMAKE_C_FLAGS=-ftrapv -Wlogical-op"
# To turn compiler warnings into errors:
# CMAKE_EXTRA_FLAGS += "-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS} -Werror"
# Sets the build type; defaults to Debug. Valid values:
#
# - Debug: Disables optimizations (-O0), enables debug information.