am7xxx: rename the 'size' argument of am7xxx_send_image() to 'image_size'
[libam7xxx.git] / CMakeLists.txt
index 199bc80..5d36d6c 100644 (file)
@@ -68,10 +68,11 @@ if (CMAKE_COMPILER_IS_GNUCC)
     -Wunreachable-code
     -Wunsafe-loop-optimizations
     -Wwrite-strings
-    )
+    -fstack-protector
+    --param=ssp-buffer-size=4)
 endif()
 
-set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG=1")
+set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG=1 -Werror")
 set(CMAKE_C_FLAGS_RELEASE "-O2")
 set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g")