]> git.eshelyaron.com Git - emacs.git/commitdiff
Pacify gcc -Warray-parameter
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 13 Oct 2021 18:16:54 +0000 (11:16 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 13 Oct 2021 18:47:21 +0000 (11:47 -0700)
* src/pdumper.h: Declare array parameter with the same signature
that the function definition uses.

src/pdumper.h

index 79f8bce2d8c765e53d4ec85fe7e2216ca10b01a0..7f1f5e46ad90943966d05b35856fa024c70f5a40 100644 (file)
@@ -21,6 +21,7 @@ along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.  */
 #define EMACS_PDUMPER_H
 
 #include <stdio.h>
+#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);