[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiling pdumper.c fails with gcc 4.7.2
From: |
martin rudalics |
Subject: |
Re: Compiling pdumper.c fails with gcc 4.7.2 |
Date: |
Thu, 24 Jan 2019 10:05:42 +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]
>>
>> 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.
martin