projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84552b1
)
* c-exp.y (classify_name): Avoid assignment in condition.
author
Tom Tromey
<tromey@redhat.com>
Fri, 27 Jul 2012 19:22:17 +0000
(19:22 +0000)
committer
Tom Tromey
<tromey@redhat.com>
Fri, 27 Jul 2012 19:22:17 +0000
(19:22 +0000)
gdb/ChangeLog
patch
|
blob
|
history
gdb/c-exp.y
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index 0ba1827eed1fa16ebcf5faf3373325ea84604036..97934fa42b72586098b84795635f2c613962975c 100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-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".
diff --git
a/gdb/c-exp.y
b/gdb/c-exp.y
index 5bcbb0e05974184c6f9338fd83ace47674ec99ab..e5b6d94a199e7cc70059b5da97a2c636b9053185 100644
(file)
--- 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;
}