]> git.saurik.com Git - bison.git/commitdiff
Fix gcc 3.4.4 shadowing warning reported by Eric Blake.
authorJoel E. Denny <jdenny@clemson.edu>
Sat, 29 Aug 2009 20:25:58 +0000 (16:25 -0400)
committerJoel E. Denny <jdenny@clemson.edu>
Sat, 29 Aug 2009 20:31:10 +0000 (16:31 -0400)
See
<http://lists.gnu.org/archive/html/bison-patches/2009-08/msg00093.html>.
* src/scan-code.h (code_props_rule_action_init): Rename
named_ref arg to name so it doesn't shadow named_ref type.  This
makes it consistent with the function definition in scan-code.l
anyway.
(cherry picked from commit 2646cd540bfdd35f457e0e0a1bcc5f9b26a96849)

ChangeLog
src/scan-code.h

index ae79ce5e3f2b52ed17c01e94d7102a3ba588d677..7345b242e082a62ec3c7cc1d1d5bf4cadecdedcb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2009-08-29  Joel E. Denny  <jdenny@clemson.edu>
+
+       Fix gcc 3.4.4 shadowing warning reported by Eric Blake.
+       See
+       <http://lists.gnu.org/archive/html/bison-patches/2009-08/msg00093.html>.
+       * src/scan-code.h (code_props_rule_action_init): Rename
+       named_ref arg to name so it doesn't shadow named_ref type.  This
+       makes it consistent with the function definition in scan-code.l
+       anyway.
+
 2009-08-28  Joel E. Denny  <jdenny@clemson.edu>
 
        %define: accept unquoted values.
index 11cf5d01eb3061ed4940dc11795adab169afcd86..c98a54ad1916beb2e48c2b3134827223914e1399 100644 (file)
@@ -134,7 +134,7 @@ void code_props_symbol_action_init (code_props *self, char const *code,
  */
 void code_props_rule_action_init (code_props *self, char const *code,
                                   location code_loc, struct symbol_list *rule,
-                                 named_ref *named_ref);
+                                  named_ref *name);
 
 /**
  * \pre