From 6ef2f2a96f8f534101819610e9fd816b3b539d1d Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Tue, 30 May 2017 16:43:47 +0200 Subject: [PATCH] Fix LINPHONE_NO_BREAK definition --- include/linphone/defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linphone/defs.h b/include/linphone/defs.h index 825220122..c3b5c0a31 100644 --- a/include/linphone/defs.h +++ b/include/linphone/defs.h @@ -51,7 +51,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. /* Macro telling GCC that a 'break' statement has been deliberately omitted * in switch block */ #ifndef LINPHONE_NO_BREAK -#ifdef __GNUC__ +#if defined(__GNUC__) && __GNUC__ >= 7 #define LINPHONE_NO_BREAK __attribute__((fallthrough)) #else #define LINPHONE_NO_BREAK