From eafbfec11c57fdd67568c17e7b6c6c5fe1fc7a85 Mon Sep 17 00:00:00 2001 From: Steven Fisher Date: Tue, 24 Jul 2012 12:36:25 -0700 Subject: [PATCH] Fixes warning about using == on floats. If the value changes from near to 2.0 to some other near 2.0, it's fine to recalculate. Thus, use #pragma clang diagnostic to explicitly turn off the float-equal warning. --- AFNetworking/AFImageRequestOperation.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AFNetworking/AFImageRequestOperation.m b/AFNetworking/AFImageRequestOperation.m index beeae69..fbd1e22 100644 --- a/AFNetworking/AFImageRequestOperation.m +++ b/AFNetworking/AFImageRequestOperation.m @@ -161,9 +161,12 @@ static dispatch_queue_t image_request_operation_processing_queue() { } - (void)setImageScale:(CGFloat)imageScale { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wfloat-equal" if (imageScale == _imageScale) { return; } +#pragma clang diagnostic pop _imageScale = imageScale;