From 6fe430f582f2297ca190d04639a885c789b532ae Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 10 Jun 2019 17:20:41 +0200 Subject: local.mk.example: add example for -Werror [ci skip] #10178 --- contrib/local.mk.example | 3 +++ 1 file changed, 3 insertions(+) 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. -- cgit