+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>
* class.c, cp-tree.h, decl.c, decl2.c, g++spec.c, init.c,
/* Allow it, sigh. */;
else if (pedantic || ! is_main)
pedwarn ("ISO C++ forbids declaration of %qs with no type", name);
- else if (warn_return_type)
- warning (0, "ISO C++ forbids declaration of %qs with no type", name);
+ else
+ warning (OPT_Wreturn_type,
+ "ISO C++ forbids declaration of %qs with no type", name);
type = integer_type_node;
}