diff mbox

[3/3] Fix build with GCC 4.6 series.

Message ID 1302692766-30217-3-git-send-email-flameeyes@gmail.com (mailing list archive)
State Mainlined, archived
Headers show

Commit Message

Diego Elio Pettenò April 13, 2011, 11:06 a.m. UTC
The label_statement attribute in the anonymous structures' union was
duplicated for label_arg and labeled_struct alises, which were
identical. Since the former is never used, delete it and leave the other as
the only copy.
---
 parse.h |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

Comments

Christopher Li April 14, 2011, 9:58 a.m. UTC | #1
Will apply.

Chris

On Wed, Apr 13, 2011 at 4:06 AM, Diego Elio Pettenò <flameeyes@gmail.com> wrote:
> The label_statement attribute in the anonymous structures' union was
> duplicated for label_arg and labeled_struct alises, which were
> identical. Since the former is never used, delete it and leave the other as
> the only copy.
> ---
>  parse.h |    4 ----
>  1 files changed, 0 insertions(+), 4 deletions(-)
>
> diff --git a/parse.h b/parse.h
> index 6b21e23..b26bd03 100644
> --- a/parse.h
> +++ b/parse.h
> @@ -35,10 +35,6 @@ struct statement {
>                struct /* declaration */ {
>                        struct symbol_list *declaration;
>                };
> -               struct /* label_arg */ {
> -                       struct symbol *label;
> -                       struct statement *label_statement;
> -               };
>                struct {
>                        struct expression *expression;
>                        struct expression *context;
> --
> 1.7.5.rc1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/parse.h b/parse.h
index 6b21e23..b26bd03 100644
--- a/parse.h
+++ b/parse.h
@@ -35,10 +35,6 @@  struct statement {
 		struct /* declaration */ {
 			struct symbol_list *declaration;
 		};
-		struct /* label_arg */ {
-			struct symbol *label;
-			struct statement *label_statement;
-		};
 		struct {
 			struct expression *expression;
 			struct expression *context;