From c50fcb85f55da46f4693a610442937ba950b1278 Mon Sep 17 00:00:00 2001 From: Tommy Z Date: Mon, 28 Oct 2019 12:08:47 -0400 Subject: [PATCH 1/2] Cast error.code to (unsigned long) This to avoid: error: values of type 'NSUInteger' should not be used as format arguments; add an explicit cast to 'unsigned long' instead [-Werror,-Wformat] --- .../ios/Classes/GoogleMapMarkerController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google_maps_flutter/ios/Classes/GoogleMapMarkerController.m b/packages/google_maps_flutter/ios/Classes/GoogleMapMarkerController.m index 91b4e7bce2b7..2f0d4a989b9d 100644 --- a/packages/google_maps_flutter/ios/Classes/GoogleMapMarkerController.m +++ b/packages/google_maps_flutter/ios/Classes/GoogleMapMarkerController.m @@ -189,7 +189,7 @@ static void InterpretInfoWindow(id sink, NSDictio } else { NSString* error = [NSString stringWithFormat:@"'fromAssetImage' should have exactly 3 arguments. Got: %lu", - iconData.count]; + (unsigned long)iconData.count]; NSException* exception = [NSException exceptionWithName:@"InvalidBitmapDescriptor" reason:error userInfo:nil]; @@ -209,7 +209,7 @@ static void InterpretInfoWindow(id sink, NSDictio } else { NSString* error = [NSString stringWithFormat:@"fromBytes should have exactly one argument, the bytes. Got: %lu", - iconData.count]; + (unsigned long)iconData.count]; NSException* exception = [NSException exceptionWithName:@"InvalidByteDescriptor" reason:error userInfo:nil]; From e5e9afa09f410724f391ad0524f9831cb173e8ed Mon Sep 17 00:00:00 2001 From: Tommy Z Date: Mon, 28 Oct 2019 12:20:47 -0400 Subject: [PATCH 2/2] Update CHANGELOG.md --- packages/google_maps_flutter/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/google_maps_flutter/CHANGELOG.md b/packages/google_maps_flutter/CHANGELOG.md index d9a9bb8602a2..1c41bc0a77f4 100644 --- a/packages/google_maps_flutter/CHANGELOG.md +++ b/packages/google_maps_flutter/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.5.21+9 + +* Cast error.code to unsigned long to avoid using NSInteger as %ld format warnings. + ## 0.5.21+8 * Add NS_ASSUME_NONNULL_* macro to reduce iOS compiler warnings.