aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNicola Pero <nicola@gcc.gnu.org>2002-01-08 18:03:11 +0000
committerNicola Pero <nicola@gcc.gnu.org>2002-01-08 18:03:11 +0000
commitc18736ac11e0b9cd537ab6916d2f64e92c7b06fe (patch)
treea40093a8e2b25b8496a0d9257c225b79f7c6bf7f /gcc
parentc9f115ad254fbbf739f6e3f916370393d2914d23 (diff)
downloadgcc-c18736ac11e0b9cd537ab6916d2f64e92c7b06fe.zip
gcc-c18736ac11e0b9cd537ab6916d2f64e92c7b06fe.tar.gz
gcc-c18736ac11e0b9cd537ab6916d2f64e92c7b06fe.tar.bz2
Remove spurious warnings of the like '__objc_class_ref_NSObject defined but
not used' From-SVN: r48648
Diffstat (limited to 'gcc')
-rw-r--r--gcc/objc/objc-act.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c
index 5538a21..0a57d65b 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);