build: suppress format truncation warnings to avoid errors with gcc7
[project/netifd.git] / 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 "")