From f62c9d186d3a414d1c09cb4e58b08497ac780831 Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 19 Nov 2013 12:22:38 +0000 Subject: [PATCH] Avoided some warnings in OSX10.9 SDK --- .../juce_graphics/native/juce_mac_CoreGraphicsContext.mm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.mm b/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.mm index fcee63a3dd..7ae0114aa6 100644 --- a/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.mm +++ b/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.mm @@ -582,6 +582,11 @@ void CoreGraphicsContext::drawGlyph (int glyphNumber, const AffineTransform& tra { if (state->fontRef != 0 && state->fillType.isColour()) { + #if JUCE_CLANG + #pragma clang diagnostic push + #pragma clang diagnostic ignored "-Wdeprecated-declarations" + #endif + if (transform.isOnlyTranslation()) { CGContextSetTextMatrix (context, state->fontTransform); // have to set this each time, as it's not saved as part of the state @@ -605,6 +610,10 @@ void CoreGraphicsContext::drawGlyph (int glyphNumber, const AffineTransform& tra CGContextRestoreGState (context); } + + #if JUCE_CLANG + #pragma clang diagnostic pop + #endif } else {