From e892a0c1a1d3818e604d1420b8c8b6a257b04221 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Fri, 4 Jan 2019 10:31:33 +0100 Subject: [PATCH] build: suppress format truncation warnings to avoid errors with gcc7 Signed-off-by: Hans Dedecker --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 79aa852..aadc595 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}) -- 2.30.2