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