ignore unused parameters
This commit is contained in:
@@ -51,6 +51,9 @@ llmr::Settings_NSUserDefaults *settings = nullptr;
|
||||
self.locationManager.delegate = self;
|
||||
}
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
||||
- (void)saveState:(NSNotification *)notification
|
||||
{
|
||||
if (self.mapView && settings)
|
||||
@@ -74,6 +77,8 @@ llmr::Settings_NSUserDefaults *settings = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
- (void)setupDebugUI
|
||||
{
|
||||
UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleSingleTapGesture:)];
|
||||
@@ -191,6 +196,9 @@ llmr::Settings_NSUserDefaults *settings = nullptr;
|
||||
|
||||
#pragma mark - User location
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
||||
- (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations
|
||||
{
|
||||
CLLocation *latestLocation = locations.lastObject;
|
||||
@@ -198,4 +206,6 @@ llmr::Settings_NSUserDefaults *settings = nullptr;
|
||||
[self.mapView setCenterCoordinate:CLLocationCoordinate2DMake(latestLocation.coordinate.latitude, latestLocation.coordinate.longitude) zoomLevel:17 animated:YES];
|
||||
}
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user