projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8da8d90
)
Show the right type when warning about excessive initializer elements.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 5 Jul 2012 06:33:29 +0000
(08:33 +0200)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 5 Jul 2012 06:33:29 +0000
(08:33 +0200)
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
53f8fa2
..
5afa7fa
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-2061,7
+2061,7
@@
finish_designator:
if (sub != NULL) {
next_if(',');
if (token.kind != '}') {
- warningf(WARN_OTHER, HERE, "excessive elements in initializer for type '%T'", o
rig
_type);
+ warningf(WARN_OTHER, HERE, "excessive elements in initializer for type '%T'", o
uter
_type);
}
/* TODO: eat , ... */
return sub;