diff options
author | Richard Stallman <rms@gnu.org> | 1993-05-14 16:05:19 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-05-14 16:05:19 +0000 |
commit | 0046ffa3f07beaac3d064c2189d1d79734473bcc (patch) | |
tree | 08c896abf314996f4fe70327561b3f19d8ac6fbe /gcc/objc | |
parent | 76ace27b1e4c11036f6d56236621c23afbf93e51 (diff) | |
download | gcc-0046ffa3f07beaac3d064c2189d1d79734473bcc.zip gcc-0046ffa3f07beaac3d064c2189d1d79734473bcc.tar.gz gcc-0046ffa3f07beaac3d064c2189d1d79734473bcc.tar.bz2 |
(__objc_init_protocols): Don't install protocol class pointer twice.
From-SVN: r4450
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/objc/init.c b/gcc/objc/init.c index 7277513..ea601a0 100644 --- a/gcc/objc/init.c +++ b/gcc/objc/init.c @@ -243,10 +243,10 @@ __objc_init_protocols (struct objc_protocol_list* protos) { if (((size_t)((id)protos->list[i])->class_pointer) == PROTOCOL_VERSION) ((id)protos->list[i])->class_pointer = proto_class; - else + else if (((id)protos->list[i])->class_pointer != proto_class) { fprintf (stderr, - "Version %d doesn't protocol version %d\n", + "Version %d doesn't match runtime protocol version %d\n", ((size_t)((id)protos->list[i])->class_pointer), PROTOCOL_VERSION); abort (); |