mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Tweaks to avoid compiler warnings with gcc-4
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21390 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a7f1ff64f9
commit
71e5005964
53 changed files with 502 additions and 322 deletions
|
@ -34,6 +34,8 @@
|
|||
#include "Foundation/NSInvocation.h"
|
||||
|
||||
@class NSGDate;
|
||||
@interface NSGDate : NSObject // Help the compiler
|
||||
@end
|
||||
static Class NSDate_class;
|
||||
|
||||
/**
|
||||
|
@ -329,7 +331,7 @@ static Class NSDate_class;
|
|||
/**
|
||||
* Compares timers based on the date at which they should next fire.
|
||||
*/
|
||||
- (NSComparisonResult) compare: (NSTimer*)anotherTimer
|
||||
- (NSComparisonResult) compare: (id)anotherTimer
|
||||
{
|
||||
if (anotherTimer == self)
|
||||
{
|
||||
|
@ -342,7 +344,7 @@ static Class NSDate_class;
|
|||
}
|
||||
else
|
||||
{
|
||||
return [_date compare: anotherTimer->_date];
|
||||
return [_date compare: ((NSTimer*)anotherTimer)->_date];
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue