diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2010-06-06 16:40:18 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2010-06-06 16:40:18 +0000 |
commit | 04087cd0369ca9f978942715031c7dbd545ffb0f (patch) | |
tree | c0f8796b62375cc227af40436a9f3792a895f499 /gcc/c-decl.c | |
parent | df2a52a6b22f8edd13057e1093c8c55624029397 (diff) | |
download | gcc-04087cd0369ca9f978942715031c7dbd545ffb0f.zip gcc-04087cd0369ca9f978942715031c7dbd545ffb0f.tar.gz gcc-04087cd0369ca9f978942715031c7dbd545ffb0f.tar.bz2 |
re PR c/20000 (missing warning for noreturn function returning non-void)
2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/20000
* c-decl.c (grokdeclarator): Delete warning.
testsuite/
* c-c++-common/pr20000.c: New.
From-SVN: r160346
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 2485bf4..96ef299 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -5901,12 +5901,6 @@ grokdeclarator (const struct c_declarator *declarator, pedwarn (loc, OPT_pedantic, "ISO C forbids qualified function types"); - /* GNU C interprets a volatile-qualified function type to indicate - that the function does not return. */ - if ((type_quals & TYPE_QUAL_VOLATILE) - && !VOID_TYPE_P (TREE_TYPE (TREE_TYPE (decl)))) - warning_at (loc, 0, "%<noreturn%> function returns non-void value"); - /* Every function declaration is an external reference (DECL_EXTERNAL) except for those which are not at file scope and are explicitly declared "auto". This is |