Skip to content
  • Philippe Mathieu-Daudé's avatar
    9d976580
    qemu-nbd: Rename 'exp' variable clashing with math::exp() symbol · 9d976580
    Philippe Mathieu-Daudé authored
    
    
    The use of a variable named 'exp' prevents includes to import <math.h>.
    
    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 /usr/include/bits/libc-header-start.h:33,
                       from /usr/include/stdint.h:26,
                       from /usr/lib/gcc/x86_64-redhat-linux/8/include/stdint.h:9,
                       from /source/qemu/include/qemu/osdep.h:80,
                       from /source/qemu/qemu-nbd.c:19:
      /usr/include/bits/mathcalls.h:95:1: note: previous declaration of ‘exp’ was here
        __MATHCALL_VEC (exp,, (_Mdouble_ __x));
        ^~~~~~~~~~~~~~
    
    Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
    Reviewed-by: default avatarEric Blake <eblake@redhat.com>
    Message-Id: <20190111163519.11457-1-philmd@redhat.com>
    Signed-off-by: default avatarEric Blake <eblake@redhat.com>
    9d976580
    qemu-nbd: Rename 'exp' variable clashing with math::exp() symbol
    Philippe Mathieu-Daudé authored
    
    
    The use of a variable named 'exp' prevents includes to import <math.h>.
    
    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 /usr/include/bits/libc-header-start.h:33,
                       from /usr/include/stdint.h:26,
                       from /usr/lib/gcc/x86_64-redhat-linux/8/include/stdint.h:9,
                       from /source/qemu/include/qemu/osdep.h:80,
                       from /source/qemu/qemu-nbd.c:19:
      /usr/include/bits/mathcalls.h:95:1: note: previous declaration of ‘exp’ was here
        __MATHCALL_VEC (exp,, (_Mdouble_ __x));
        ^~~~~~~~~~~~~~
    
    Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
    Reviewed-by: default avatarEric Blake <eblake@redhat.com>
    Message-Id: <20190111163519.11457-1-philmd@redhat.com>
    Signed-off-by: default avatarEric Blake <eblake@redhat.com>
Loading