build: use -Wno-format-truncation instead of -Wno-error=format-truncation
authorFelix Fietkau <nbd@nbd.name>
Tue, 9 May 2017 10:42:37 +0000 (12:42 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 9 May 2017 10:43:45 +0000 (12:43 +0200)
Fixes build error with older gcc

Signed-off-by: Felix Fietkau <nbd@nbd.name>
CMakeLists.txt

index 3799bc7c509fdf37fb8e882177bbdc37e0f049cf..81928a622e8b63cb91d7c3f7cfc31f53b00e166c 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 -Wno-error=format-truncation)
+ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -Wmissing-declarations -Wno-format-truncation)
 
 SET(iptc_libs   ip4tc)