ref: 6ccfb01b7e62b247295552155fdcb497d80423c3
parent: 583c3db6e8c5336499e4506d4fa5bc469845745b
author: Robin Watts <Robin.Watts@artifex.com>
date: Fri Jan 24 13:00:13 EST 2020
jbig2dec: reintroduce gcc attribute that got dropped by accident.
--- a/jbig2_priv.h
+++ b/jbig2_priv.h
@@ -116,7 +116,11 @@
#define jbig2_renew(ctx, p, t, size) ((t *)jbig2_realloc(ctx->allocator, (p), size, sizeof(t)))
-int jbig2_error(Jbig2Ctx *ctx, Jbig2Severity severity, int32_t seg_idx, const char *fmt, ...);
+int jbig2_error(Jbig2Ctx *ctx, Jbig2Severity severity, int32_t seg_idx, const char *fmt, ...)
+#ifdef __GNUC__
+ __attribute__ ((format (__printf__, 4, 5)))
+#endif
+ ;
/* The word stream design is a compromise between simplicity and
trying to amortize the number of method calls. Each ::get_next_word