Compiling dwarf2out.c with older versions of GCC yields a warning because 
is_redundant_typedef has a prototype without the 'inline' keyboard and a 
declaration with it, and is called from another function in-between.

The attached patchlet adds 'inline' to the prototype, as is done for other 
functions in the file.  Tested on i586-suse-linux, applied on mainline and 
4.6/4.5 branches as obvious.

2011-04-18  Eric Botcazou  <ebotca...@adacore.com>

        * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.


-- 
Eric Botcazou
Index: dwarf2out.c
===================================================================
--- dwarf2out.c	(revision 172617)
+++ dwarf2out.c	(working copy)
@@ -6565,7 +6565,7 @@ static void gen_typedef_die (tree, dw_di
 static void gen_type_die (tree, dw_die_ref);
 static void gen_block_die (tree, dw_die_ref, int);
 static void decls_for_scope (tree, dw_die_ref, int);
-static int is_redundant_typedef (const_tree);
+static inline int is_redundant_typedef (const_tree);
 static bool is_naming_typedef_decl (const_tree);
 static inline dw_die_ref get_context_die (tree);
 static void gen_namespace_die (tree, dw_die_ref);

Reply via email to