Stop build process if a warning shows up
[libam7xxx.git] / CMakeLists.txt
index 199bc80..8c9b1c1 100644 (file)
@@ -45,6 +45,7 @@ if (CMAKE_COMPILER_IS_GNUCC)
   add_flags(CMAKE_C_FLAGS
     -fno-common
     -Wall
   add_flags(CMAKE_C_FLAGS
     -fno-common
     -Wall
+    -Werror
     -Wextra
     -Wformat=2
     -Winit-self
     -Wextra
     -Wformat=2
     -Winit-self