unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Compiling pdumper.c fails with gcc 4.7.2
@ 2019-01-23  9:10 martin rudalics
  2019-01-23 13:48 ` Robert Pluim
  2019-01-23 15:41 ` Eli Zaretskii
  0 siblings, 2 replies; 6+ messages in thread
From: martin rudalics @ 2019-01-23  9:10 UTC (permalink / raw)
  To: emacs-devel

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




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-01-24  9:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-23  9:10 Compiling pdumper.c fails with gcc 4.7.2 martin rudalics
2019-01-23 13:48 ` Robert Pluim
2019-01-24  9:05   ` martin rudalics
2019-01-24  9:28     ` Robert Pluim
2019-01-23 15:41 ` Eli Zaretskii
2019-01-24  9:05   ` martin rudalics

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).