Re: [Qemu-devel] [PATCH] qemu-nbd: Rename 'exp' variable clashing with math::exp() symbol

2019-01-11 Thread Eric Blake
On 1/11/19 10:35 AM, Philippe Mathieu-Daudé wrote: > The use of a variable named 'exp' prevents includes to import . > > Rename it to avoid: > > qemu-nbd.c:64:19: error: ‘exp’ redeclared as different kind of symbol >static NBDExport *exp; > ^~~ > In file included

Re: [Qemu-devel] [PATCH] qemu-nbd: Rename 'exp' variable clashing with math::exp() symbol

2019-01-11 Thread Philippe Mathieu-Daudé
Cc'ing qemu-triv...@nongnu.org On Fri, Jan 11, 2019 at 5:35 PM Philippe Mathieu-Daudé wrote: > > The use of a variable named 'exp' prevents includes to import . > > Rename it to avoid: > > qemu-nbd.c:64:19: error: ‘exp’ redeclared as different kind of symbol >static NBDExport *exp; >

[Qemu-devel] [PATCH] qemu-nbd: Rename 'exp' variable clashing with math::exp() symbol

2019-01-11 Thread Philippe Mathieu-Daudé
The use of a variable named 'exp' prevents includes to import . Rename it to avoid: qemu-nbd.c:64:19: error: ‘exp’ redeclared as different kind of symbol static NBDExport *exp; ^~~ In file included from /usr/include/features.h:428, from