aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/make-fingerprint.c
diff options
context:
space:
mode:
authorAndreas Schwab2019-07-09 21:12:14 +0200
committerAndreas Schwab2019-07-09 21:41:24 +0200
commitfc41b0610e5bb204dd9905f89e235ea801e7a4ea (patch)
tree5905a009530bda821688434a936bbf3fa96bad15 /lib-src/make-fingerprint.c
parentbff64115a0ad081282e0f99305f41c8dd1917d67 (diff)
downloademacs-fc41b0610e5bb204dd9905f89e235ea801e7a4ea.tar.gz
emacs-fc41b0610e5bb204dd9905f89e235ea801e7a4ea.zip
Make fingerprint handling compatible with LTO
Tell the compiler that the fingerprint variable is modified unpredictably. * lib/fingerprint.h (fingerprint): Remove const. * lib/fingerprint.c (fingerprint): Likewise. * src/pdumper.c (Fdump_emacs_portable): Cast fingerprint variable. (pdumper_load): Likewise. * lib-src/make-fingerprint.c (main): Likewise.
Diffstat (limited to 'lib-src/make-fingerprint.c')
-rw-r--r--lib-src/make-fingerprint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib-src/make-fingerprint.c b/lib-src/make-fingerprint.c
index 5779e0d2746..2417548d8ca 100644
--- a/lib-src/make-fingerprint.c
+++ b/lib-src/make-fingerprint.c
@@ -144,7 +144,8 @@ main (int argc, char **argv)
144 144
145 for (char *finger = buf; 145 for (char *finger = buf;
146 (finger = memmem (finger, buf + chunksz - finger, 146 (finger = memmem (finger, buf + chunksz - finger,
147 fingerprint, sizeof fingerprint)); 147 (unsigned char *) fingerprint,
148 sizeof fingerprint));
148 finger++) 149 finger++)
149 { 150 {
150 if (! (fseeko (f, finger - buf, SEEK_SET) == 0 151 if (! (fseeko (f, finger - buf, SEEK_SET) == 0