summaryrefslogtreecommitdiff
path: root/src/gzip/ftgzip.c
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2023-01-16 16:38:56 +0100
committerWerner Lemberg <wl@gnu.org>2023-01-16 16:38:56 +0100
commit6a179ff7d55714501c5efce85e2a47de6055a07a (patch)
tree66e3e0651ac7d9358e9eed50e7a7fe7126af5a74 /src/gzip/ftgzip.c
parent2692b3215be4f106b714974c55f4ab80da25189c (diff)
downloadfreetype2-6a179ff7d55714501c5efce85e2a47de6055a07a.tar.gz
sr/*.c: Various minor fixes.
* src/autofit/ft-hb.c (_hb_ft_reference_table): Call `FT_UNUSED` after variable declarations. * src/gxvalid/gxvjust.c (gxv_just_widthDeltaClusters_validate): Eliminate unused variable. * src/gzip/ftgzip.c: Don't call GCC '-Wstrict-prototypes' pragma for C++ compiler. * src/sfnt/ttcolr.c (ENSURE_READ_BYTES): Remove final semicolon to avoid compiler warning. * src/sfnt/ttsvg.c (tt_face_load_svg_doc): Fix signedness warning.
Diffstat (limited to 'src/gzip/ftgzip.c')
-rw-r--r--src/gzip/ftgzip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gzip/ftgzip.c b/src/gzip/ftgzip.c
index b415e9d6c..f7ffebdcb 100644
--- a/src/gzip/ftgzip.c
+++ b/src/gzip/ftgzip.c
@@ -90,7 +90,9 @@
#if defined( __GNUC__ )
#pragma GCC diagnostic push
+#ifndef __cplusplus
#pragma GCC diagnostic ignored "-Wstrict-prototypes"
+#endif
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#pragma GCC diagnostic ignored "-Wredundant-decls"
#endif