Committed, gas/dwarf2dbg.c: Rename local variable exp from expr

Hans-Peter Nilsson hp@bitrange.com
Wed Jul 26 10:53:00 GMT 2017


On Tue, 25 Jul 2017, Alexandre Oliva wrote:
> Hi, H-P,
>
> On Jul 23, 2017, Hans-Peter Nilsson <hp@bitrange.com> wrote:
>
> > /home/hp/binutils/src/gas/dwarf2dbg.c:2246: error: declaration of 'expr' shadows a global declaration
> > /home/hp/binutils/src/gas/expr.h:180: error: shadowed declaration is here
>
> Thanks!  I wonder, though, whether 'exp' won't be just as troublesome,
> in case some system or gas header includes math.h, now or in the
> future...

Perhaps, but I forgot to mention that I took the name "exp" from
usage in another nearby function.  So, not yet. :)

brgds, H-P



More information about the Binutils mailing list