[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiling pdumper.c fails with gcc 4.7.2
From: |
Robert Pluim |
Subject: |
Re: Compiling pdumper.c fails with gcc 4.7.2 |
Date: |
Thu, 24 Jan 2019 10:28:50 +0100 |
martin rudalics <address@hidden> writes:
>>> 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]
>>>
>>> Is there any practicable way to fix this?
>>
>> Sure, the emacs_ptr function is static, so it can change name easily
>> enough. Something like the following works for me:
>
> Thank you very much. I verified that it would have worked here hadn't
> Eli installed a different fix.
Eli chose a better, shorter name than I did :-)
Robert