Commit b10fc6f5 by Gabriel Dos Reis Committed by Gabriel Dos Reis

* decl.c (grokdeclarator): Use OPT_Wreturn_type instead of 0.

From-SVN: r121568
parent 22f23985
2007-02-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
* decl.c (grokdeclarator): Use OPT_Wreturn_type instead of 0.
2007-02-04 Kazu Hirata <kazu@codesourcery.com> 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
* class.c, cp-tree.h, decl.c, decl2.c, g++spec.c, init.c, * class.c, cp-tree.h, decl.c, decl2.c, g++spec.c, init.c,
......
...@@ -7254,8 +7254,9 @@ grokdeclarator (const cp_declarator *declarator, ...@@ -7254,8 +7254,9 @@ grokdeclarator (const cp_declarator *declarator,
/* Allow it, sigh. */; /* Allow it, sigh. */;
else if (pedantic || ! is_main) else if (pedantic || ! is_main)
pedwarn ("ISO C++ forbids declaration of %qs with no type", name); pedwarn ("ISO C++ forbids declaration of %qs with no type", name);
else if (warn_return_type) else
warning (0, "ISO C++ forbids declaration of %qs with no type", name); warning (OPT_Wreturn_type,
"ISO C++ forbids declaration of %qs with no type", name);
type = integer_type_node; type = integer_type_node;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment