unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: emacs-devel <emacs-devel@gnu.org>
Subject: Compiling pdumper.c fails with gcc 4.7.2
Date: Wed, 23 Jan 2019 10:10:22 +0100	[thread overview]
Message-ID: <5C482F7E.1050805@gmx.at> (raw)

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	other threads:[~2019-01-23  9:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-23  9:10 martin rudalics [this message]
2019-01-23 13:48 ` Compiling pdumper.c fails with gcc 4.7.2 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5C482F7E.1050805@gmx.at \
    --to=rudalics@gmx.at \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).