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: https://git.librecmc.org/?a=commitdiff_plain;h=d36192325756cfada19cccf5f05a94720ec36262;p=oweals%2Ffstools.git 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 e7a97db..14b6e0a 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 "")