From 1e34b5cf46b7a1c907380d5a6aee678b33d2d066 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Sun, 25 Feb 2018 13:41:40 +0000 Subject: [PATCH] Add #ifdef for GCC pragma --- test/murmurhash3.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/murmurhash3.cpp b/test/murmurhash3.cpp index ba4f1443..39663531 100644 --- a/test/murmurhash3.cpp +++ b/test/murmurhash3.cpp @@ -7,7 +7,11 @@ // compile and run any of them on any platform, but your performance with the // non-native version will be less than optimal. -#pragma GCC diagnostic ignored "-Wimplicit-fallthrough" +#include "platform.h" + +#ifdef ETL_COMPILER_GCC + #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" +#endif #include "murmurhash3.h"