* c-exp.y (classify_name): Avoid assignment in condition.
authorTom Tromey <tromey@redhat.com>
Fri, 27 Jul 2012 19:22:17 +0000 (19:22 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 27 Jul 2012 19:22:17 +0000 (19:22 +0000)
gdb/ChangeLog
gdb/c-exp.y

index 0ba1827eed1fa16ebcf5faf3373325ea84604036..97934fa42b72586098b84795635f2c613962975c 100644 (file)
@@ -1,3 +1,7 @@
+2012-07-27  Tom Tromey  <tromey@redhat.com>
+
+       * c-exp.y (classify_name): Avoid assignment in condition.
+
 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
 
        * amd64-windows-tdep.c: Include "frame.h".
index 5bcbb0e05974184c6f9338fd83ace47674ec99ab..e5b6d94a199e7cc70059b5da97a2c636b9053185 100644 (file)
@@ -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;
        }