Remove spurious warnings of the like '__objc_class_ref_NSObject defined but
authorNicola Pero <nicola@gcc.gnu.org>
Tue, 8 Jan 2002 18:03:11 +0000 (18:03 +0000)
committerNicola Pero <nicola@gcc.gnu.org>
Tue, 8 Jan 2002 18:03:11 +0000 (18:03 +0000)
not used'

From-SVN: r48648

gcc/objc/objc-act.c

index 5538a21cb78032673ac01949ad4f11e84abe5b76..0a57d65b2ef71070aa370ba3ad38b25413d804a6 100644 (file)
@@ -8308,6 +8308,7 @@ handle_class_ref (chain)
   decl = build_decl (VAR_DECL, get_identifier (string), string_type_node);
   DECL_INITIAL (decl) = exp;
   TREE_STATIC (decl) = 1;
+  TREE_USED (decl) = 1;
 
   pushdecl (decl);
   rest_of_decl_compilation (decl, 0, 0, 0);