mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-05 22:20:24 -08:00
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.
This commit is contained in:
parent
bff64115a0
commit
fc41b0610e
4 changed files with 9 additions and 6 deletions
|
|
@ -144,7 +144,8 @@ main (int argc, char **argv)
|
|||
|
||||
for (char *finger = buf;
|
||||
(finger = memmem (finger, buf + chunksz - finger,
|
||||
fingerprint, sizeof fingerprint));
|
||||
(unsigned char *) fingerprint,
|
||||
sizeof fingerprint));
|
||||
finger++)
|
||||
{
|
||||
if (! (fseeko (f, finger - buf, SEEK_SET) == 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue