Cleanup: Remove 100+ compiler warnings.
This is a big cleanup that removes compiler warnings by performing
the following:
- Remove unused functions or variables.
- Change pointer cast to be alias safe using unions.
- Use __attribute__((unused)) on some local variable definitions
when their usage depends on conditional defines that are not
always true when compiling the same source several times.
- Fix a couple array indexing bugs.
There are still a few warnings from the JSON lexer, libjpeg and
the TCG helpers though, but the overall compilation is much cleaner.
BUG=NONE
Change-Id: Ic4483e6402b266ecfd7bca8c92a73d8fcf392a1f
diff --git a/cpus.c b/cpus.c
index c4e8eea..d76f94a 100644
--- a/cpus.c
+++ b/cpus.c
@@ -28,6 +28,7 @@
#include "exec/gdbstub.h"
#include "sysemu/dma.h"
#include "sysemu/kvm.h"
+#include "exec/exec-all.h"
#include "exec/hax.h"
#include "sysemu/cpus.h"