diff options
-rw-r--r-- | contrib/local.mk.example | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/local.mk.example b/contrib/local.mk.example index 52a5505399..a8c8e9cefb 100644 --- a/contrib/local.mk.example +++ b/contrib/local.mk.example @@ -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. |