From f907ebcf2ee8344759f5956b24de1f83affae760 Mon Sep 17 00:00:00 2001 From: Noel Eck Date: Tue, 13 Mar 2018 14:45:27 -0700 Subject: [PATCH] mraa: Temporarily turn off deprecated warnings MRAA deprecated mraa_gpio_use_mmaped which gets flagged as a warning in UPM and then fails since -Werror is set. For now, don't flag deprecations as warnings. Signed-off-by: Noel Eck --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 359ecab5..7870d2f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,7 +91,11 @@ endfunction () # Compiler flags common to both C and CXX # Enable -Wall # GCC-6 added -Wmisleading-indentation to -Wall, skip these for now -set (C_CXX_WARNING_FLAGS -Wall -Wno-misleading-indentation -Wno-strict-aliasing) +set (C_CXX_WARNING_FLAGS -Wall + -Wno-misleading-indentation + -Wno-strict-aliasing + -Wno-deprecated-declarations # Temp fix for MRAA deprecated methods + ) # Warnings as errors? if (WERROR)