aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-06-10 17:20:41 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-06-10 17:20:41 +0200
commit6fe430f582f2297ca190d04639a885c789b532ae (patch)
tree314ea250fca8fe403fd5cf99e1fc8e2870f27775
parentce90a19abd5ba0188454574ee7691d06a4534f8a (diff)
downloadrneovim-6fe430f582f2297ca190d04639a885c789b532ae.tar.gz
rneovim-6fe430f582f2297ca190d04639a885c789b532ae.tar.bz2
rneovim-6fe430f582f2297ca190d04639a885c789b532ae.zip
local.mk.example: add example for -Werror [ci skip] #10178
-rw-r--r--contrib/local.mk.example3
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.