]> git.proxmox.com Git - qemu.git/commit
Fix compiler warnings
authorStefan Weil <weil@mail.berlios.de>
Mon, 31 Aug 2009 14:29:34 +0000 (16:29 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Mon, 31 Aug 2009 15:41:53 +0000 (15:41 +0000)
commit9e3a95ef4752dc86bf30a578be4a579a7c6c04e6
tree6590fc74ebc5b7337e7ab54064c9a2af03b7a487
parent528e93a9787ccfc59582a44035f5f342caf5b84f
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>
slirp/slirp.c