~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
..
cpu.h 8331 15 years ago Anthony Liguori cleanup cpu-exec.c, part 0/N: consolidate handle_c 6.1 KB Diff Download File
crisv32-decode.h 7863 15 years ago Blue Swirl Update to a hopefully more future proof FSF addres 5.4 KB Diff Download File
exec.h 7863 15 years ago Blue Swirl Update to a hopefully more future proof FSF addres 1.5 KB Diff Download File
helper.c 7863 15 years ago Blue Swirl Update to a hopefully more future proof FSF addres 4.9 KB Diff Download File
helper.h 6216 16 years ago edgar_igl CRIS: Purify some of the flag evaluation helpers. 1 KB Diff Download File
machine.c 7369 15 years ago Anthony Liguori Convert machine registration to use module init fu 2.2 KB Diff Download File
mmu.c 7863 15 years ago Blue Swirl Update to a hopefully more future proof FSF addres 8.5 KB Diff Download File
mmu.h 7166.1.1 15 years ago Edgar E. Iglesias CRIS: cris_mmu_result_t -> cris_mmu_result Signed 397 bytes Diff Download File
op_helper.c 7863 15 years ago Blue Swirl Update to a hopefully more future proof FSF addres 13.4 KB Diff Download File
opcode-cris.h 7863 15 years ago Blue Swirl Update to a hopefully more future proof FSF addres 9.9 KB Diff Download File
translate.c 7863 15 years ago Blue Swirl Update to a hopefully more future proof FSF addres 80 KB Diff Download File