Avoid compile warnings for tinycc.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5801 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/perf/tinycc.c b/perf/tinycc.c
index 14ae48e..2e5c051 100644
--- a/perf/tinycc.c
+++ b/perf/tinycc.c
@@ -9145,7 +9145,7 @@
break;
/* return next token without macro substitution */
-static inline void next_nomacro1(void)
+static /*inline*/ void next_nomacro1(void)
{
int t, c, is_long;
TokenSym *ts;
@@ -9833,7 +9833,7 @@
/* handle the '##' operator. Return NULL if no '##' seen. Otherwise
return the resulting string (which must be freed). */
-static inline int *macro_twosharps(const int *macro_str)
+static /*inline*/ int *macro_twosharps(const int *macro_str)
{
TokenSym *ts;
const int *macro_ptr1, *start_macro_ptr, *ptr, *saved_macro_ptr;
@@ -11144,6 +11144,12 @@
}
}
+/* return the pointed type of t */
+static inline CType *pointed_type(CType *type)
+{
+ return &type->ref->type;
+}
+
static int pointed_size(CType *type)
{
int align;
@@ -11620,12 +11626,6 @@
}
}
-/* return the pointed type of t */
-static inline CType *pointed_type(CType *type)
-{
- return &type->ref->type;
-}
-
/* modify type so that its it is a pointer to type. */
static void mk_pointer(CType *type)
{
@@ -20585,7 +20585,7 @@
ucontext_t *uc, int level)
{
unsigned long fp;
- int i;
+ //int i;
if (level == 0) {
*paddr = 12345; //uc->uc_mcontext.gregs[REG_EIP];