From 826f00411deecfe08e004e584f1f2b79f915b7af Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 27 Jul 2012 19:22:17 +0000 Subject: [PATCH] * c-exp.y (classify_name): Avoid assignment in condition. --- gdb/ChangeLog | 4 ++++ gdb/c-exp.y | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0ba1827eed1..97934fa42b7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2012-07-27 Tom Tromey + + * c-exp.y (classify_name): Avoid assignment in condition. + 2012-07-27 Roland Schwingel * amd64-windows-tdep.c: Include "frame.h". diff --git a/gdb/c-exp.y b/gdb/c-exp.y index 5bcbb0e0597..e5b6d94a199 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -2747,8 +2747,8 @@ classify_name (struct block *block) if (Class) { yylval.class.class = Class; - if ((sym = lookup_struct_typedef (copy, expression_context_block, - 1))) + sym = lookup_struct_typedef (copy, expression_context_block, 1); + if (sym) yylval.class.type = SYMBOL_TYPE (sym); return CLASSNAME; } -- 2.30.2