From 9852b61c2b87f619117e4a170c7c34b29a8afc59 Mon Sep 17 00:00:00 2001 From: "Joel E. Denny" Date: Sat, 29 Aug 2009 16:25:58 -0400 Subject: [PATCH] Fix gcc 3.4.4 shadowing warning reported by Eric Blake. See . * 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 | 10 ++++++++++ src/scan-code.h | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ae79ce5e..7345b242 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2009-08-29 Joel E. Denny + + Fix gcc 3.4.4 shadowing warning reported by Eric Blake. + See + . + * 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 %define: accept unquoted values. diff --git a/src/scan-code.h b/src/scan-code.h index 11cf5d01..c98a54ad 100644 --- a/src/scan-code.h +++ b/src/scan-code.h @@ -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 -- 2.47.2