diff options
author | David 'Digit' Turner <digit@android.com> | 2010-09-22 14:19:28 +0200 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2010-09-22 14:19:28 +0200 |
commit | 4e024bb4f5c8aa8b07459f7fbd65c35122127fd1 (patch) | |
tree | ccd5835eef17757d3e1c069e391c415c0135023d /vl-android.c | |
parent | 1d9873b37d2478554d9d678cd410bd3638c8dab3 (diff) | |
download | external_qemu-4e024bb4f5c8aa8b07459f7fbd65c35122127fd1.zip external_qemu-4e024bb4f5c8aa8b07459f7fbd65c35122127fd1.tar.gz external_qemu-4e024bb4f5c8aa8b07459f7fbd65c35122127fd1.tar.bz2 |
Remove compiler warnings when building the emulator.
This forces -Wall during the build. Note that this patch doesn't
remove all warnings, but most of the remaining ones are from upstream anyway.
Change-Id: I8808d8495e99866e156ce5780d2e3c305eab491f
Diffstat (limited to 'vl-android.c')
-rw-r--r-- | vl-android.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/vl-android.c b/vl-android.c index 8b3241c..13f4dac 100644 --- a/vl-android.c +++ b/vl-android.c @@ -525,7 +525,7 @@ void hw_error(const char *fmt, ...) va_end(ap); abort(); } - + /***************/ /* ballooning */ @@ -2537,11 +2537,13 @@ static int qemu_event_init(void) return 0; } +#if 0 static void qemu_event_increment(void) { SetEvent(qemu_event_handle); } #endif +#endif static int cpu_can_run(CPUState *env) { @@ -4948,7 +4950,10 @@ int main(int argc, char **argv, char **envp) if (pid_file && qemu_create_pidfile(pid_file) != 0) { if (daemonize) { uint8_t status = 1; - write(fds[1], &status, 1); + int ret; + do { + ret = write(fds[1], &status, 1); + } while (ret < 0 && errno == EINTR); } else fprintf(stderr, "Could not acquire pid file\n"); exit(1); |