From caf5e39c2e68553101519fb4ce3664a73032d3a3 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Tue, 22 Aug 2017 07:20:55 -0400 Subject: Fix compiler warnings for clang/mac OS X --- libqpdf/sph/sph_types.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libqpdf/sph') diff --git a/libqpdf/sph/sph_types.h b/libqpdf/sph/sph_types.h index 7295b0b3..eab09a26 100644 --- a/libqpdf/sph/sph_types.h +++ b/libqpdf/sph/sph_types.h @@ -804,6 +804,11 @@ static inline void sph_enc64be_aligned(void *dst, sph_u64 val); /* ============== END documentation block for Doxygen ============= */ +#if defined(__clang__) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wold-style-cast" +#endif + #ifndef DOXYGEN_IGNORE /* @@ -1971,6 +1976,10 @@ sph_dec64le_aligned(const void *src) #endif +#if defined(__clang__) +# pragma GCC diagnostic pop +#endif + #endif /* Doxygen excluded block */ #endif -- cgit v1.2.3-54-g00ecf