From cdb711663c310ce5e79ad30ed2c848490adb694e Mon Sep 17 00:00:00 2001 From: "gln%google.com@gtempaccount.com" Date: Thu, 7 Jun 2012 23:19:54 +0000 Subject: [PATCH] Don't define isIPad on simulator because it's unused and that causes a warning on llvm. git-svn-id: https://zxing.googlecode.com/svn/trunk@2305 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- iphone/ZXingWidget/Classes/ZXingWidgetController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iphone/ZXingWidget/Classes/ZXingWidgetController.m b/iphone/ZXingWidget/Classes/ZXingWidgetController.m index 2ed052063..84e222383 100644 --- a/iphone/ZXingWidget/Classes/ZXingWidgetController.m +++ b/iphone/ZXingWidget/Classes/ZXingWidgetController.m @@ -307,7 +307,7 @@ // Gross, I know. But you can't use the device idiom because it's not iPad when running // in zoomed iphone mode but the camera still acts like an ipad. - +#if HAS_AVFF static bool isIPad() { static int is_ipad = -1; if (is_ipad < 0) { @@ -321,6 +321,7 @@ static bool isIPad() { } return !!is_ipad; } +#endif - (void)initCapture { #if HAS_AVFF