]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Avoid compile warnings for tinycc.
authorNicholas Nethercote <njn@valgrind.org>
Thu, 30 Mar 2006 10:26:44 +0000 (10:26 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Thu, 30 Mar 2006 10:26:44 +0000 (10:26 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5801

perf/Makefile.am
perf/tinycc.c

index 83e9bfdcd0a2a40f960c5c2bdabe544ad21c5543..24f07699fc3d392bbd76aa54e0f0522728bf1c9d 100644 (file)
@@ -26,3 +26,5 @@ AM_CXXFLAGS = $(AM_CFLAGS)
 fbench_CFLAGS   = $(AM_FLAG_M3264_PRI) -g -O2
 fbench_LDADD   = 
 ffbench_LDADD  = -lm
+
+tinycc_CFLAGS  = $(AM_CFLAGS) -Wno-shadow
index 14ae48e602aafee3afddba9c60b66caaefe04813..2e5c051b36a63bbb21c119d89fffac2206af1297 100644 (file)
@@ -9145,7 +9145,7 @@ void parse_number(const char *p)
         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 @@ static int macro_subst_tok(TokenString *tok_str,
 
 /* 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 @@ void gen_opif(int op)
     }
 }
 
+/* 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 @@ static int type_size(CType *type, int *a)
     }
 }
 
-/* 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 @@ static int rt_get_caller_pc(unsigned long *paddr,
                             ucontext_t *uc, int level)
 {
     unsigned long fp;
-    int i;
+    //int i;
 
     if (level == 0) {
         *paddr = 12345; //uc->uc_mcontext.gregs[REG_EIP];