mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 15:30:50 +00:00
[qfcc] Fix method not found warnings
It turns out they should not be optional, but do need to be smarter about when and which. So another two FIXMEs gone :)
This commit is contained in:
parent
669c8f43d8
commit
59db90d177
1 changed files with 5 additions and 9 deletions
|
@ -1136,19 +1136,15 @@ class_message_response (class_t *class, int class_msg, expr_t *sel)
|
|||
}
|
||||
c = c->super_class;
|
||||
}
|
||||
//FIXME right option?
|
||||
if (options.warnings.interface_check)
|
||||
warning (sel, "%s may not respond to %c%s", class->name,
|
||||
class_msg ? '+' : '-', selector->name);
|
||||
warning (sel, "%s may not respond to %c%s", class->name,
|
||||
class_msg ? '+' : '-', selector->name);
|
||||
}
|
||||
m = find_method (selector->name);
|
||||
if (m)
|
||||
return m;
|
||||
//FIXME right option?
|
||||
if (options.warnings.interface_check)
|
||||
if (!m && (!class || class->type == &type_obj_object)) {
|
||||
warning (sel, "could not find method for %c%s",
|
||||
class_msg ? '+' : '-', selector->name);
|
||||
return 0;
|
||||
}
|
||||
return m;
|
||||
}
|
||||
|
||||
static uintptr_t
|
||||
|
|
Loading…
Reference in a new issue