* decl.c (start_function): Up warning of no return type to be a
pedwarn.
+Mon Sep 22 14:15:34 1997 Benjamin Kosnik <bkoz@rhino.cygnus.com>
+
+ * init.c (expand_member_init): Don't set TREE_USED.
+ * decl.c (cp_finish_decl): Mark decls used if type has TREE_USED
+ set,don't clear TREE_USED wholesale.
+
Sat Sep 20 15:31:00 1997 Jason Merrill <jason@yorick.cygnus.com>
* call.c (build_over_call): Do require_complete_type before
was initialized was ever used. Don't do this if it has a
destructor, so we don't complain about the 'resource
allocation is initialization' idiom. */
+ /* Now set attribute((unused)) on types so decls of
+ of that type will be marked used. (see TREE_USED, above.)
+ This avoids the warning problems this particular code
+ tried to work around. */
if (TYPE_NEEDS_CONSTRUCTING (type)
&& ! already_used
init = TREE_OPERAND (decl, 1);
decl = start_decl (declarator, declspecs, 1);
+ /* Look for __unused__ attribute */
+ if (TREE_USED (TREE_TYPE (decl)))
+ TREE_USED (decl) = 1;
finish_decl (decl, init, NULL_TREE);
return 0;
}