emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compiling pdumper.c fails with gcc 4.7.2


From: martin rudalics
Subject: Compiling pdumper.c fails with gcc 4.7.2
Date: Wed, 23 Jan 2019 10:10:22 +0100

With gcc 4.7.2 compiling pdumper.c fails thusly:

  CC       pdumper.o
../../src/pdumper.c: In function ‘emacs_offset’:
../../src/pdumper.c:718:27: error: declaration of ‘emacs_ptr’ shadows a global 
declaration [-Werror=shadow]
../../src/pdumper.c:710:1: error: shadowed declaration is here [-Werror=shadow]
../../src/pdumper.c: In function ‘dump_emacs_reloc_copy_from_dump’:
../../src/pdumper.c:1559:40: error: declaration of ‘emacs_ptr’ shadows a global 
declaration [-Werror=shadow]
../../src/pdumper.c:710:1: error: shadowed declaration is here [-Werror=shadow]
../../src/pdumper.c: In function ‘dump_emacs_reloc_immediate’:
../../src/pdumper.c:1589:41: error: declaration of ‘emacs_ptr’ shadows a global 
declaration [-Werror=shadow]
../../src/pdumper.c:710:1: error: shadowed declaration is here [-Werror=shadow]
../../src/pdumper.c: In function ‘dump_emacs_reloc_immediate_lv’:
../../src/pdumper.c:1616:1: error: declaration of ‘emacs_ptr’ shadows a global 
declaration [-Werror=shadow]
../../src/pdumper.c:710:1: error: shadowed declaration is here [-Werror=shadow]
../../src/pdumper.c: In function ‘dump_emacs_reloc_immediate_ptrdiff_t’:
../../src/pdumper.c:1617:1: error: declaration of ‘emacs_ptr’ shadows a global 
declaration [-Werror=shadow]
../../src/pdumper.c:710:1: error: shadowed declaration is here [-Werror=shadow]
../../src/pdumper.c: In function ‘dump_emacs_reloc_immediate_emacs_int’:
../../src/pdumper.c:1618:1: error: declaration of ‘emacs_ptr’ shadows a global 
declaration [-Werror=shadow]
../../src/pdumper.c:710:1: error: shadowed declaration is here [-Werror=shadow]
../../src/pdumper.c: In function ‘dump_emacs_reloc_immediate_int’:
../../src/pdumper.c:1619:1: error: declaration of ‘emacs_ptr’ shadows a global 
declaration [-Werror=shadow]
../../src/pdumper.c:710:1: error: shadowed declaration is here [-Werror=shadow]
../../src/pdumper.c: In function ‘dump_emacs_reloc_immediate_bool’:
../../src/pdumper.c:1620:1: error: declaration of ‘emacs_ptr’ shadows a global 
declaration [-Werror=shadow]
../../src/pdumper.c:710:1: error: shadowed declaration is here [-Werror=shadow]
../../src/pdumper.c: In function ‘dump_emacs_reloc_to_dump_ptr_raw’:
../../src/pdumper.c:1626:47: error: declaration of ‘emacs_ptr’ shadows a global 
declaration [-Werror=shadow]
../../src/pdumper.c:710:1: error: shadowed declaration is here [-Werror=shadow]
../../src/pdumper.c: In function ‘dump_emacs_reloc_to_lv’:
../../src/pdumper.c:1645:38: error: declaration of ‘emacs_ptr’ shadows a global 
declaration [-Werror=shadow]
../../src/pdumper.c:710:1: error: shadowed declaration is here [-Werror=shadow]
../../src/pdumper.c: In function ‘dump_emacs_reloc_to_emacs_ptr_raw’:
../../src/pdumper.c:1674:42: error: declaration of ‘emacs_ptr’ shadows a global 
declaration [-Werror=shadow]
../../src/pdumper.c:710:1: error: shadowed declaration is here [-Werror=shadow]
cc1: some warnings being treated as errors
make[1]: *** [pdumper.o] Fehler 1
make[1]: *** Warte auf noch nicht beendete Prozesse...
make[1]: Leaving directory `/home/martin/emacs-git/trunk/obj-opt/src'
make: *** [src] Fehler 2

Is there any practicable way to fix this?

Thanks, martin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]