From 5be4483d33e574d30146e06b7ed083d1e1ece3d6 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 13 Oct 2021 11:16:54 -0700 Subject: [PATCH] Pacify gcc -Warray-parameter * src/pdumper.h: Declare array parameter with the same signature that the function definition uses. --- src/pdumper.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pdumper.h b/src/pdumper.h index 79f8bce2d8c..7f1f5e46ad9 100644 --- a/src/pdumper.h +++ b/src/pdumper.h @@ -21,6 +21,7 @@ along with GNU Emacs. If not, see . */ #define EMACS_PDUMPER_H #include +#include "fingerprint.h" #include "lisp.h" INLINE_HEADER_BEGIN @@ -52,7 +53,7 @@ enum { PDUMPER_NO_OBJECT = -1 }; pdumper_remember_scalar (&(thing), sizeof (thing)) extern void dump_fingerprint (FILE *output, const char *label, - const unsigned char *xfingerprint); + unsigned char const fingerp[sizeof fingerprint]); extern void pdumper_remember_scalar_impl (void *data, ptrdiff_t nbytes);