Fix some GCC warnings. Patch by TOM.

main
theraven 16 years ago
parent a9bdab1f44
commit a692cbd4dd

@ -402,13 +402,13 @@ const char *class_getIvarLayout(Class cls)
IMP class_getMethodImplementation(Class cls, SEL name) IMP class_getMethodImplementation(Class cls, SEL name)
{ {
struct objc_object_gnu obj = { cls }; struct objc_object obj = { cls };
return (IMP)objc_msg_lookup((id)&obj, name); return (IMP)objc_msg_lookup((id)&obj, name);
} }
IMP class_getMethodImplementation_stret(Class cls, SEL name) IMP class_getMethodImplementation_stret(Class cls, SEL name)
{ {
struct objc_object_gnu obj = { cls }; struct objc_object obj = { cls };
return (IMP)objc_msg_lookup((id)&obj, name); return (IMP)objc_msg_lookup((id)&obj, name);
} }

Loading…
Cancel
Save