From 74c0a1f9ed0d2b8856ac593f1d1a14a6c7ce5075 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Fri, 4 Jan 2019 15:14:53 +0100 Subject: [PATCH] build: suppress ignoring return value warnings Suppress ignoring return value warnings to fix compile issues with gcc5 The is actually a bug in gcc5 as it does not recognize the no-format-truncation option although it's silently accepted unless the source file under compilation had already generated some warnings before. Therefore suppress ignoring return value warnings which trigger the problem. Signed-off-by: Hans Dedecker --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 24a18a2..85f97e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 2.6) PROJECT(mountd C) -ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-format-truncation) +ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-unused-result -Wno-format-truncation) FIND_PATH(uci_include_dir uci.h) INCLUDE_DIRECTORIES(${uci_include_dir}) -- 2.25.1