From: Reto Schneider Date: Sat, 21 Jan 2012 15:15:50 +0000 (+0100) Subject: Stop build process if a warning shows up X-Git-Tag: v0.1.0~24 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/dbfb92b2fdf5c9d0bee3db9cd1ffe643e880055a?hp=fbdfd1400cbe36b7fb6fa0de8ebc382eac666dd3 Stop build process if a warning shows up --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 199bc80..8c9b1c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,6 +45,7 @@ if (CMAKE_COMPILER_IS_GNUCC) add_flags(CMAKE_C_FLAGS -fno-common -Wall + -Werror -Wextra -Wformat=2 -Winit-self