fstools: use -Wno-format-truncation instead of -Wno-error=format-truncation
authorFelix Fietkau <nbd@nbd.name>
Tue, 9 May 2017 10:37:42 +0000 (12:37 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 30 Jun 2017 15:25:24 +0000 (17:25 +0200)
Fixes build error with older gcc

Signed-off-by: Felix Fietkau <nbd@nbd.name>
CMakeLists.txt

index 14b6e0acaad63df19c6692ff8da163895d5c781a..56ffc01621bdd92b32f6e004a7b4efa68b8a1695 100644 (file)
@@ -1,7 +1,7 @@
 cmake_minimum_required(VERSION 2.6)
 
 PROJECT(fs-tools C)
-ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-error=format-truncation)
+ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-format-truncation)
 
 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")