From: Felix Fietkau Date: Thu, 4 May 2017 14:13:34 +0000 (+0200) Subject: build: disable the format-truncation warning error to fix gcc 7 build errors X-Git-Url: http://git.openwrt.org/?p=project%2Ffstools.git;a=commitdiff_plain;h=a19f2b3c212888734c007e9f57b4e3c470620594;ds=sidebyside build: disable the format-truncation warning error to fix gcc 7 build errors Signed-off-by: Felix Fietkau --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a828244..04d9470 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 2.6) PROJECT(fs-tools C) -ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations) +ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-error=format-truncation) SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")