Skip to content
  • Stefan Weil's avatar
    Fix compiler warnings · 9e3a95ef
    Stefan Weil authored
    Starting with commit df7a86ed
    
    ,
    mingw32 builds result in a compiler warning for dns_addr:
    
      CC    slirp/slirp.o
    /home/stefan/src/qemu/savannah/qemu/slirp/slirp.c:50: warning: missing braces around initializer
    /home/stefan/src/qemu/savannah/qemu/slirp/slirp.c:50: warning: (near initialization for ‘dns_addr.S_un’)
    
    Removing the assignment fixes the warning without the need of special code
    for mingw32 (and also saves some bytes in the resulting binary).
    
    To fix another potential compiler warning, the missing 'static'
    attribute was added.
    
    The same changes were applied to dns_addr_time.
    
    Signed-off-by: default avatarStefan Weil <weil@mail.berlios.de>
    Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
    9e3a95ef