build: suppress format truncation warnings to avoid errors with gcc7
authorFelix Fietkau <nbd@nbd.name>
Thu, 4 May 2017 13:49:53 +0000 (15:49 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 4 May 2017 13:49:58 +0000 (15:49 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
CMakeLists.txt

index d54b6fa9fd5c16db4c04068ff98c55ed22417f21..ecdb94619626d957fbe3ec86d654581c9e0dd4d9 100644 (file)
@@ -1,7 +1,7 @@
 cmake_minimum_required(VERSION 2.6)
 
 PROJECT(netifd C)
-ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -Wmissing-declarations)
+ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-format-truncation)
 
 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")