@@ -309,8 +309,11 @@ static NSTimeInterval absoluteTimeForEventTime(double currentEventTime)
309
309
[targetView pressureChangeWithEvent: secondEvent];
310
310
311
311
[NSApp _setCurrentEvent: nil ];
312
+ #pragma clang diagnostic push
313
+ #pragma clang diagnostic ignored "-Wnonnull"
312
314
// WKView caches the most recent pressure event, so send it a nil event to clear the cache.
313
315
[targetView pressureChangeWithEvent: nil ];
316
+ #pragma clang diagnostic pop
314
317
315
318
[firstEvent release ];
316
319
[secondEvent release ];
@@ -345,8 +348,12 @@ static NSTimeInterval absoluteTimeForEventTime(double currentEventTime)
345
348
[targetView pressureChangeWithEvent: secondEvent];
346
349
347
350
[NSApp _setCurrentEvent: nil ];
348
- // WKView caches the most recent pressure event, so send it a nil event to clear the cache.
351
+
352
+ #pragma clang diagnostic push
353
+ #pragma clang diagnostic ignored "-Wnonnull"
354
+ // WKView caches the most recent pressure event, so send it a nil event to clear the cache.
349
355
[targetView pressureChangeWithEvent: nil ];
356
+ #pragma clang diagnostic pop
350
357
351
358
[firstEvent release ];
352
359
[secondEvent release ];
@@ -369,8 +376,11 @@ static NSTimeInterval absoluteTimeForEventTime(double currentEventTime)
369
376
[targetView pressureChangeWithEvent: event];
370
377
[NSApp _setCurrentEvent: nil ];
371
378
379
+ #pragma clang diagnostic push
380
+ #pragma clang diagnostic ignored "-Wnonnull"
372
381
// WKView caches the most recent pressure event, so send it a nil event to clear the cache.
373
382
[targetView pressureChangeWithEvent: nil ];
383
+ #pragma clang diagnostic pop
374
384
375
385
[event release ];
376
386
}
0 commit comments