From c18736ac11e0b9cd537ab6916d2f64e92c7b06fe Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Tue, 8 Jan 2002 18:03:11 +0000 Subject: [PATCH] Remove spurious warnings of the like '__objc_class_ref_NSObject defined but not used' From-SVN: r48648 --- gcc/objc/objc-act.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 5538a21cb78..0a57d65b2ef 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); -- 2.11.4.GIT