Browse Source

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 <dedeckeh@gmail.com>
Hans Dedecker 5 years ago
parent
commit
74c0a1f9ed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      CMakeLists.txt

+ 1 - 1
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})