From c60ed7a7364251b6577a90fe20ef257c707fc0ec Mon Sep 17 00:00:00 2001 From: heckflosse Date: Mon, 26 Jun 2017 02:16:11 +0200 Subject: [PATCH] Silence warnings in dcraw.cc when using gcc >= 7 --- rtengine/dcraw.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rtengine/dcraw.cc b/rtengine/dcraw.cc index 330741630..d6bac40de 100644 --- a/rtengine/dcraw.cc +++ b/rtengine/dcraw.cc @@ -3,8 +3,11 @@ #pragma GCC diagnostic ignored "-Warray-bounds" #pragma GCC diagnostic ignored "-Wsign-compare" #pragma GCC diagnostic ignored "-Wparentheses" -#if (__GNUC__ == 6) +#if (__GNUC__ >= 6) #pragma GCC diagnostic ignored "-Wmisleading-indentation" +#if (__GNUC__ >= 7) +#pragma GCC diagnostic ignored "-Wdangling-else" +#endif #endif #endif