From: Guilherme Maciel Ferreira Date: Sat, 18 Feb 2012 00:14:39 +0000 (-0200) Subject: Added stack protection warning and optimization to avoid stack overflows. X-Git-Tag: v1.3~11^2~13 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=c8f43b20e44272153030bd8428018bac0028a4fc;p=pingcheck Added stack protection warning and optimization to avoid stack overflows. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index cf63d64..3ed3f29 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,7 @@ add_definitions( -Wall -Wextra -Weffc++ -Wshadow -Wcast-qual -Wconversion -pedantic -Wabi -Wfloat-equal -Winline -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Woverloaded-virtual -Wpacked -Wredundant-decls -Wsign-promo + -Wstack-protector -fstack-protector #-Werror #-O2 -DVERSION_STRING=${VERSION}