From: Nicola Pero Date: Tue, 8 Jan 2002 18:03:11 +0000 (+0000) Subject: Remove spurious warnings of the like '__objc_class_ref_NSObject defined but X-Git-Tag: prereleases/libstdc++-3.0.96~599 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c18736ac11e0b9cd537ab6916d2f64e92c7b06fe;p=thirdparty%2Fgcc.git Remove spurious warnings of the like '__objc_class_ref_NSObject defined but not used' From-SVN: r48648 --- diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 5538a21cb780..0a57d65b2ef7 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -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);