Skip to contentSkip to conversation

tcg: Remove unneeded include statements

PATCH Applied Stefan Weil 2 participants 2 messages Feb 11, 2012 – Feb 20, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tcg: Remove unneeded include statements

The standard include files are already included in qemu-common.h.

malloc.h and alloca.h were needed for alloca() which was removed from TCG code some years ago when switching from dyngen to TCG (see commit 49516bc0d622112caac9df628caf19010fda8b67).

---
 tcg/tcg.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
tcg/tcg.c +0 -12
index 6f9328e..023cb51 100644
@@ -33,18 +33,6 @@
 #define NDEBUG
 #endif
 
-#include <stdarg.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <inttypes.h>
-#ifdef _WIN32
-#include <malloc.h>
-#endif
-#ifdef _AIX
-#include <alloca.h>
-#endif
-
 #include "qemu-common.h"
 #include "cache-utils.h"
 #include "host-utils.h"
Signature · 1 line
1.7.8.3
#1 lore raw
Quoted 10 lines · Stefan Weil

The standard include files are already included in qemu-common.h.

malloc.h and alloca.h were needed for alloca() which was removed from TCG code some years ago when switching from dyngen to TCG (see commit 49516bc0d622112caac9df628caf19010fda8b67).

---
 tcg/tcg.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches

Stefan