projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d924b2
)
Warn about type qualifiers in the return type of function types.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Tue, 16 Sep 2008 18:38:09 +0000
(18:38 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Tue, 16 Sep 2008 18:38:09 +0000
(18:38 +0000)
[r22020]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
e5fb27f
..
119677c
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-4167,6
+4167,10
@@
static type_t *construct_declarator_type(construct_type_t *construct_list,
errorf(HERE, "function returning array is not allowed");
type = type_error_type;
} else {
+ if (skipped_return_type->base.qualifiers != 0) {
+ warningf(HERE,
+ "type qualifiers in return type of function type are meaningless");
+ }
type = function_type;
}
break;