From 0ab7d3d9c3d91ce27cb2dc7bcfcc6e83dd6347f1 Mon Sep 17 00:00:00 2001 From: tpoole Date: Fri, 7 Jul 2017 12:28:58 +0100 Subject: [PATCH] Box2D: Suppressed some build warnings --- modules/juce_box2d/juce_box2d.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/juce_box2d/juce_box2d.cpp b/modules/juce_box2d/juce_box2d.cpp index be378888f7..e3ab3e0ec4 100644 --- a/modules/juce_box2d/juce_box2d.cpp +++ b/modules/juce_box2d/juce_box2d.cpp @@ -33,6 +33,12 @@ #error "Incorrect use of JUCE cpp file" #endif +#ifdef __clang__ + #pragma clang diagnostic push + #pragma clang diagnostic ignored "-Wsign-conversion" + #pragma clang diagnostic ignored "-Wfloat-conversion" +#endif + #include "juce_box2d.h" #include "box2d/Collision/b2BroadPhase.cpp" @@ -85,3 +91,7 @@ namespace juce { #include "utils/juce_Box2DRenderer.cpp" } + +#if JUCE_CLANG + #pragma clang diagnostic pop +#endif