From da5b615c10504d6c282d3c0e24c311ad01dd0166 Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 9 Oct 2018 11:59:06 +0100 Subject: [PATCH] Fix for GCC compiler warning --- modules/juce_box2d/juce_box2d.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/juce_box2d/juce_box2d.h b/modules/juce_box2d/juce_box2d.h index ba6cc5e4f9..7b79b8a0f5 100644 --- a/modules/juce_box2d/juce_box2d.h +++ b/modules/juce_box2d/juce_box2d.h @@ -57,8 +57,10 @@ #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" - #if __has_warning("-Wzero-as-null-pointer-constant") - #pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" + #if defined (__clang__) + #if __has_warning("-Wzero-as-null-pointer-constant") + #pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" + #endif #endif #endif