build: disable the format-truncation warning error to fix gcc 7 build errors
authorFelix Fietkau <nbd@nbd.name>
Thu, 4 May 2017 14:17:51 +0000 (16:17 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 4 May 2017 14:17:51 +0000 (16:17 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
CMakeLists.txt

index e2a88e7e1d22a2d5428a35531a36cd9d2e09cc34..3799bc7c509fdf37fb8e882177bbdc37e0f049cf 100644 (file)
@@ -1,7 +1,7 @@
 cmake_minimum_required(VERSION 2.6)
 
 PROJECT(firewall3 C)
-ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -Wmissing-declarations)
+ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -Wmissing-declarations -Wno-error=format-truncation)
 
 SET(iptc_libs   ip4tc)