aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaelan Steele <gbs@canishe.com>2014-03-02 14:20:56 -0800
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-03 08:47:21 -0300
commiteb835bc2ca3d50a33762df40e5cd259c22685f04 (patch)
treed8b1683c88d6389bf08cfb454ec80a559bf83012
parentd9283c4927cc5f926fa796acc2568610bd9a80d6 (diff)
downloadrneovim-eb835bc2ca3d50a33762df40e5cd259c22685f04.tar.gz
rneovim-eb835bc2ca3d50a33762df40e5cd259c22685f04.tar.bz2
rneovim-eb835bc2ca3d50a33762df40e5cd259c22685f04.zip
Use -Werror.
This makes all warnings errors. We don't want any warnings, so we should enforce that.
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 363c03bdc4..065a5b09bc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,9 +12,9 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# If the C compiler is some GNU-alike, use the gnu99 standard and enable all warnings.
if(CMAKE_COMPILER_IS_GNUCC)
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic -Wno-unused-parameter -std=gnu99")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror -Wall -Wextra -pedantic -Wno-unused-parameter -std=gnu99")
elseif(CMAKE_C_COMPILER_ID MATCHES "Clang")
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic -Wno-unused-parameter -std=gnu99")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror -Wall -Wextra -pedantic -Wno-unused-parameter -std=gnu99")
endif(CMAKE_COMPILER_IS_GNUCC)
add_definitions(-DHAVE_CONFIG_H)