From: Hans Dedecker Date: Fri, 4 Jan 2019 14:14:53 +0000 (+0100) Subject: build: suppress ignoring return value warnings X-Git-Url: https://git.librecmc.org/?p=oweals%2Fmountd.git;a=commitdiff_plain;h=74c0a1f9ed0d2b8856ac593f1d1a14a6c7ce5075 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 --- 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})