build: suppress format truncation warnings to avoid errors with gcc7
[oweals/mountd.git] / CMakeLists.txt
index 79aa852355f8d2c14deab33a7ce6b491c2eaf176..aadc59539def831efaff5eacc9fce133a2a0b368 100644 (file)
@@ -1,7 +1,7 @@
 cmake_minimum_required(VERSION 2.6)
 
 PROJECT(mountd C)
-ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations)
+ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-format-truncation)
 
 FIND_PATH(uci_include_dir uci.h)
 INCLUDE_DIRECTORIES(${uci_include_dir})