1. 21 10月, 2010 33 次提交
  2. 18 10月, 2010 2 次提交
  3. 14 10月, 2010 5 次提交
    • B
      trace: print a warning if user tries to enable an unknown trace event · f871d689
      Blue Swirl 提交于
      There was no warning if a bad trace event name was given to
      'trace-event' command, thus the user could think that the command
      was successful even if this was not the case.
      
      Print a warning if the user tries to enable a trace event which is not
      known.
      Acked-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      f871d689
    • B
      mips: avoid write only variables · 2abf314d
      Blue Swirl 提交于
      Compiling with GCC 4.6.0 20100925 produced a lot of warnings like:
      /src/qemu/target-mips/translate.c: In function 'gen_ld':
      /src/qemu/target-mips/translate.c:1039:17: error: variable 'opn' set but not used [-Werror=unused-but-set-variable]
      
      Fix by adding a dummy cast so that the variable is not unused.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      2abf314d
    • B
      ppc: avoid write only variables · 577f25a5
      Blue Swirl 提交于
      Compiling with GCC 4.6.0 20100925 produced warnings:
      /src/qemu/target-ppc/op_helper.c: In function 'helper_icbi':
      /src/qemu/target-ppc/op_helper.c:351:14: error: variable 'tmp' set but not used [-Werror=unused-but-set-variable]
      /src/qemu/target-ppc/op_helper.c: In function 'do_6xx_tlb':
      /src/qemu/target-ppc/op_helper.c:3805:28: error: variable 'EPN' set but not used [-Werror=unused-but-set-variable]
      /src/qemu/target-ppc/op_helper.c: In function 'do_74xx_tlb':
      /src/qemu/target-ppc/op_helper.c:3838:28: error: variable 'EPN' set but not used [-Werror=unused-but-set-variable]
      
      Fix by adding a dummy cast so that the variable is not unused. Delete tmp.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      577f25a5
    • B
      i386: avoid a write only variable · 4581cbcd
      Blue Swirl 提交于
      Compiling with GCC 4.6.0 20100925 produced warnings:
      /src/qemu/target-i386/op_helper.c: In function 'switch_tss':
      /src/qemu/target-i386/op_helper.c:283:53: error: variable 'new_trap' set but not used [-Werror=unused-but-set-variable]
      
      Fix by adding a dummy cast so that the variable is not unused. Add also
      pointer to docs.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      4581cbcd
    • B
      vnc: avoid write only variables · 2ded6ad7
      Blue Swirl 提交于
      Compiling with GCC 4.6.0 20100925 produced warnings:
      /src/qemu/ui/vnc.c: In function 'vnc_client_cache_auth':
      /src/qemu/ui/vnc.c:217:12: error: variable 'qdict' set but not used [-Werror=unused-but-set-variable]
      /src/qemu/ui/vnc.c: In function 'vnc_display_open':
      /src/qemu/ui/vnc.c:2526:9: error: variable 'acl' set but not used [-Werror=unused-but-set-variable]
      
      Fix by making the variable declarations and their uses also conditional
      to debug definition.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      2ded6ad7