Cleanup dirty code avoiding warning messages when compiling
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 19 Jan 2006 08:12:40 +0000 (09:12 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 19 Jan 2006 08:12:40 +0000 (09:12 +0100)
ioemu.

Signed-off-by: Haifeng Xue <haifeng.xue@intel.com>
tools/firmware/vmxassist/acpi_madt.c
tools/ioemu/audio/noaudio.c
tools/ioemu/cpu.h
tools/ioemu/hw/pc.c
tools/ioemu/vl.c
tools/ioemu/vl.h

index 8e8664606736a4f04bebbfd64b5a4690e5bbbf56..59e47b71c78d209946190e337dbf2d9c2607481b 100644 (file)
@@ -55,7 +55,6 @@ static struct hvm_info_table *
 get_hvm_info_table(void)
 {
        struct hvm_info_table *t;
-       int i;
 
        if (table != NULL)
                return table;
index 819de1e538805827e235fa8572a19c3cc272d95d..a192885a72a3b3d38db9863c36231408d715853c 100644 (file)
@@ -41,7 +41,6 @@ static void no_hw_run (HWVoice *hw)
 {
     NoVoice *no = (NoVoice *) hw;
     int rpos, live, decr, samples;
-    uint8_t *dst;
     st_sample_t *src;
     int64_t now = qemu_get_clock (vm_clock);
     int64_t ticks = now - no->old_ticks;
@@ -82,7 +81,6 @@ static int no_hw_write (SWVoice *sw, void *buf, int len)
 
 static int no_hw_init (HWVoice *hw, int freq, int nchannels, audfmt_e fmt)
 {
-    NoVoice *no = (NoVoice *) hw;
     hw->freq = freq;
     hw->nchannels = nchannels;
     hw->fmt = fmt;
index a3e24f2ea9f20e3d6bbd046dc7c7004e344c92b4..080362eaa18a1df5d35a9d26bcd9683aec3e5c54 100644 (file)
@@ -63,6 +63,9 @@ int cpu_get_pic_interrupt(CPUX86State *s);
 /* MSDOS compatibility mode FPU exception support */
 void cpu_set_ferr(CPUX86State *s);
 
+/* helper2.c */
+void cpu_x86_set_a20(CPUX86State *env, int a20_state);
+
 #if defined(__i386__) || defined(__x86_64__)
 #define TARGET_PAGE_BITS 12
 #elif defined(__ia64__)
index 055ab885a5fc33835d32c715c063e4452975590f..c786132d14f8ea6dc03ac35920975030ae0db03c 100644 (file)
@@ -382,8 +382,6 @@ void pc_init(uint64_t ram_size, int vga_ram_size, int boot_device,
 {
     char buf[1024];
     int ret, linux_boot, initrd_size, i, nb_nics1;
-    unsigned long bios_offset, vga_bios_offset;
-    int bios_size, isa_bios_size;
     PCIBus *pci_bus;
     extern void * shared_vram;
     
index f38f90b0c65197f31b24b2cd5af4dfc159b2b8ff..736a762d19bddfa31f5519f2ab071859cb31f093 100644 (file)
@@ -1204,7 +1204,7 @@ int store_console_dev(int domid, char *pts)
         return -1;
     }
     strcat(path, "/console/tty");
-    if (!xs_write(xs, NULL, path, pts, strlen(pts))) {
+    if (!xs_write(xs, XBT_NULL, path, pts, strlen(pts))) {
         fprintf(logfile, "xs_write for console fail");
         return -1;
     }
index fa03595a6537a95e0d941ae6e893e31e198018a9..2b30dc8f267c6b96a6410b0bca04188a46f05cc2 100644 (file)
@@ -354,6 +354,9 @@ int register_savevm(const char *idstr,
 void qemu_get_timer(QEMUFile *f, QEMUTimer *ts);
 void qemu_put_timer(QEMUFile *f, QEMUTimer *ts);
 
+/* port-e9.c */
+void port_e9_init(void);
+
 /* block.c */
 typedef struct BlockDriverState BlockDriverState;
 typedef struct BlockDriver BlockDriver;