aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/sph
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2017-08-22 13:20:55 +0200
committerJay Berkenbilt <ejb@ql.org>2017-08-22 20:13:10 +0200
commitcaf5e39c2e68553101519fb4ce3664a73032d3a3 (patch)
tree232245703f0c15b7ca9fc1e1155f0bab1967d9cd /libqpdf/sph
parent6884ad2eadff6795def2dd336a871227bc8c7d7e (diff)
downloadqpdf-caf5e39c2e68553101519fb4ce3664a73032d3a3.tar.zst
Fix compiler warnings for clang/mac OS X
Diffstat (limited to 'libqpdf/sph')
-rw-r--r--libqpdf/sph/sph_types.h9
1 files changed, 9 insertions, 0 deletions
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