~vcs-imports/qemu/git

  • Committer: Blue Swirl
  • Author(s): Stefan Weil
  • Date: 2009-08-31 15:41:53 UTC
  • Revision ID: git-v1:9e3a95ef4752dc86bf30a578be4a579a7c6c04e6
Fix compiler warnings

Starting with commit df7a86ed735eafefbd046c8cad7134652fe3f600,
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: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Filename Latest Rev Last Changed Committer Comment Size
..
softfloat-macros.h 7036 15 years ago blueswir1 Fix OpenSolaris gcc4 warnings: iovec type mismatch 23.8 KB Diff Download File
softfloat-native.c 8042 15 years ago Anthony Liguori rename HOST_BSD to CONFIG_BSD Signed-off-by: Juan 11.5 KB Diff Download File
softfloat-native.h 8069 15 years ago Anthony Liguori rename NEEDS_LIBSUNMATH to CONFIG_NEEDS_LIBSUNMATH 13.2 KB Diff Download File
softfloat-specialize.h 6717 15 years ago blueswir1 Sparse fixes: dubious mixing of bitwise and logica 20.1 KB Diff Download File
softfloat.c 6507 16 years ago aurel32 soft-float: add float32_log2() and float64_log2() 198 KB Diff Download File
softfloat.h 8069 15 years ago Anthony Liguori rename NEEDS_LIBSUNMATH to CONFIG_NEEDS_LIBSUNMATH 18.5 KB Diff Download File