mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Fix some uninitialized variable warnings.
While they're false positives (qfcc doesn't know about noreturn), at least qfcc is doing its job :)
This commit is contained in:
parent
86968f662e
commit
2aaa380098
1 changed files with 5 additions and 3 deletions
|
@ -237,7 +237,7 @@ BOOL (id object) object_is_meta_class = #0;
|
|||
|
||||
- (id) performSelector: (SEL)aSelector
|
||||
{
|
||||
local IMP msg;
|
||||
local IMP msg = nil; // FIXME teach qfcc about noreturn
|
||||
|
||||
if (!aSelector || !(msg = obj_msg_lookup (self, aSelector)))
|
||||
[self error: "invalid selector passed to %s: %s",
|
||||
|
@ -249,7 +249,7 @@ BOOL (id object) object_is_meta_class = #0;
|
|||
|
||||
- (id) performSelector: (SEL)aSelector withObject: (id)anObject
|
||||
{
|
||||
local IMP msg;
|
||||
local IMP msg = nil; // FIXME teach qfcc about noreturn
|
||||
|
||||
if (!aSelector || !(msg = obj_msg_lookup (self, aSelector)))
|
||||
[self error: "invalid selector passed to %s: %s",
|
||||
|
@ -265,9 +265,11 @@ BOOL (id object) object_is_meta_class = #0;
|
|||
{
|
||||
local IMP msg;
|
||||
|
||||
if (!aSelector || !(msg = obj_msg_lookup (self, aSelector)))
|
||||
if (!aSelector || !(msg = obj_msg_lookup (self, aSelector))) {
|
||||
[self error: "invalid selector passed to %s",
|
||||
sel_get_name (_cmd)];
|
||||
return nil; //FIXME teach qfcc about noreturn
|
||||
}
|
||||
|
||||
return msg (self, aSelector, anObject, anotherObject);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue