avoid compiler warning

This commit is contained in:
rfm 2024-08-08 14:21:22 +01:00
parent 7dfdabd675
commit c3b208a85a

View file

@ -786,6 +786,9 @@ static inline BOOL timerInvalidated(NSTimer *t)
NSInvocation *inv;
NSTimer *timer;
SEL sel;
#ifdef RL_INTEGRATE_DISPATCH
GSMainQueueDrainer *drain;
#endif
ctr = [NSNotificationCenter defaultCenter];
not = [NSNotification notificationWithName: @"GSHousekeeping"
@ -808,10 +811,10 @@ static inline BOOL timerInvalidated(NSTimer *t)
[current addTimer: timer forMode: NSDefaultRunLoopMode];
#ifdef RL_INTEGRATE_DISPATCH
// We leak the queue drainer, because it's integral part of RL
// operations
GSMainQueueDrainer *drain =
[NSObject leak: [[GSMainQueueDrainer new] autorelease]];
/* We leak the queue drainer, because it's integral part of RL
* operations
*/
drain = [NSObject leak: [[GSMainQueueDrainer new] autorelease]];
[current addEvent: [GSMainQueueDrainer mainQueueFileDescriptor]
#ifdef _WIN32
type: ET_HANDLE