Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-5286

Fix warnings when compiled under arm64

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Master
    • 3.5.0
    • cordova-ios
    • None

    Description

      Depends on CB-4863

      CompileC /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVConfigParser.o Classes/CDVConfigParser.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
          cd /Users/shaz/Desktop/arm64Test/CordovaLib
          setenv LANG en_US.US-ASCII
          setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch arm64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -miphoneos-version-min=5.0 -iquote /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-generated-files.hmap -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-own-target-headers.hmap -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-all-target-headers.hmap -iquote /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-project-headers.hmap -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Products/Debug-iphoneos/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/DerivedSources/arm64 -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/DerivedSources -F/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Products/Debug-iphoneos -DDEBUG -include /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/PrecompiledHeaders/CordovaLib_Prefix-ffccownzqiybhranoibgbxidybhk/CordovaLib_Prefix.pch -MMD -MT dependencies -MF /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVConfigParser.d --serialize-diagnostics /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVConfigParser.dia -c /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVConfigParser.m -o /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVConfigParser.o
      
      /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVConfigParser.m:85:60: warning: values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat]
          NSAssert(NO, @"config.xml parse error line %d col %d", [parser lineNumber], [parser columnNumber]);
                                                     ~~          ^~~~~~~~~~~~~~~~~~~
                                                     %ld
      In file included from /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVConfigParser.m:1:
      In file included from /Users/shaz/Desktop/arm64Test/CordovaLib/CordovaLib_Prefix.pch:21:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:25:
      /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSException.h:102:49: note: expanded from macro 'NSAssert'
                      lineNumber:__LINE__ description:(desc), ##__VA_ARGS__]; \
                                                                ^
      /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVConfigParser.m:85:81: warning: values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat]
          NSAssert(NO, @"config.xml parse error line %d col %d", [parser lineNumber], [parser columnNumber]);
                                                            ~~                        ^~~~~~~~~~~~~~~~~~~~~
                                                            %ld
      In file included from /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVConfigParser.m:1:
      In file included from /Users/shaz/Desktop/arm64Test/CordovaLib/CordovaLib_Prefix.pch:21:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:25:
      /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSException.h:102:49: note: expanded from macro 'NSAssert'
                      lineNumber:__LINE__ description:(desc), ##__VA_ARGS__]; \
                                                                ^
      2 warnings generated.
      
      CompileC /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVJSON.o Classes/CDVJSON.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
          cd /Users/shaz/Desktop/arm64Test/CordovaLib
          setenv LANG en_US.US-ASCII
          setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch arm64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -miphoneos-version-min=5.0 -iquote /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-generated-files.hmap -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-own-target-headers.hmap -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-all-target-headers.hmap -iquote /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-project-headers.hmap -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Products/Debug-iphoneos/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/DerivedSources/arm64 -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/DerivedSources -F/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Products/Debug-iphoneos -DDEBUG -include /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/PrecompiledHeaders/CordovaLib_Prefix-ffccownzqiybhranoibgbxidybhk/CordovaLib_Prefix.pch -MMD -MT dependencies -MF /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVJSON.d --serialize-diagnostics /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVJSON.dia -c /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVJSON.m -o /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVJSON.o
      
      CompileC /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVUserAgentUtil.o Classes/CDVUserAgentUtil.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
          cd /Users/shaz/Desktop/arm64Test/CordovaLib
          setenv LANG en_US.US-ASCII
          setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch arm64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -miphoneos-version-min=5.0 -iquote /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-generated-files.hmap -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-own-target-headers.hmap -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-all-target-headers.hmap -iquote /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-project-headers.hmap -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Products/Debug-iphoneos/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/DerivedSources/arm64 -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/DerivedSources -F/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Products/Debug-iphoneos -DDEBUG -include /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/PrecompiledHeaders/CordovaLib_Prefix-ffccownzqiybhranoibgbxidybhk/CordovaLib_Prefix.pch -MMD -MT dependencies -MF /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVUserAgentUtil.d --serialize-diagnostics /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVUserAgentUtil.dia -c /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVUserAgentUtil.m -o /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVUserAgentUtil.o
      
      /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVUserAgentUtil.m:92:77: warning: values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat]
          NSAssert(gCurrentLockToken == *lockToken, @"Got token %d, expected %d", *lockToken, gCurrentLockToken);
                                                                ~~                ^~~~~~~~~~
                                                                %ld
      In file included from /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVUserAgentUtil.m:1:
      In file included from /Users/shaz/Desktop/arm64Test/CordovaLib/CordovaLib_Prefix.pch:21:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:25:
      /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSException.h:102:49: note: expanded from macro 'NSAssert'
                      lineNumber:__LINE__ description:(desc), ##__VA_ARGS__]; \
                                                                ^
      /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVUserAgentUtil.m:92:89: warning: values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat]
          NSAssert(gCurrentLockToken == *lockToken, @"Got token %d, expected %d", *lockToken, gCurrentLockToken);
                                                                             ~~               ^~~~~~~~~~~~~~~~~
                                                                             %ld
      In file included from /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVUserAgentUtil.m:1:
      In file included from /Users/shaz/Desktop/arm64Test/CordovaLib/CordovaLib_Prefix.pch:21:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:25:
      /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSException.h:102:49: note: expanded from macro 'NSAssert'
                      lineNumber:__LINE__ description:(desc), ##__VA_ARGS__]; \
                                                                ^
      /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVUserAgentUtil.m:99:32: warning: values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat]
              NSLog(@"Gave lock %d", gCurrentLockToken);
                                ~~   ^~~~~~~~~~~~~~~~~
                                %ld  (long)
      /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVUserAgentUtil.m:109:76: warning: values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat]
          NSAssert(gCurrentLockToken == lockToken, @"Got token %d, expected %d", lockToken, gCurrentLockToken);
                                                               ~~                ^~~~~~~~~
                                                               %ld
      In file included from /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVUserAgentUtil.m:1:
      In file included from /Users/shaz/Desktop/arm64Test/CordovaLib/CordovaLib_Prefix.pch:21:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:25:
      /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSException.h:102:49: note: expanded from macro 'NSAssert'
                      lineNumber:__LINE__ description:(desc), ##__VA_ARGS__]; \
                                                                ^
      /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVUserAgentUtil.m:109:87: warning: values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat]
          NSAssert(gCurrentLockToken == lockToken, @"Got token %d, expected %d", lockToken, gCurrentLockToken);
                                                                            ~~              ^~~~~~~~~~~~~~~~~
                                                                            %ld
      In file included from /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVUserAgentUtil.m:1:
      In file included from /Users/shaz/Desktop/arm64Test/CordovaLib/CordovaLib_Prefix.pch:21:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:25:
      /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSException.h:102:49: note: expanded from macro 'NSAssert'
                      lineNumber:__LINE__ description:(desc), ##__VA_ARGS__]; \
                                                                ^
      5 warnings generated.
      
      CompileC /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVWebViewDelegate.o Classes/CDVWebViewDelegate.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
          cd /Users/shaz/Desktop/arm64Test/CordovaLib
          setenv LANG en_US.US-ASCII
          setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch arm64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -miphoneos-version-min=5.0 -iquote /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-generated-files.hmap -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-own-target-headers.hmap -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-all-target-headers.hmap -iquote /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-project-headers.hmap -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Products/Debug-iphoneos/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/DerivedSources/arm64 -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/DerivedSources -F/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Products/Debug-iphoneos -DDEBUG -include /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/PrecompiledHeaders/CordovaLib_Prefix-ffccownzqiybhranoibgbxidybhk/CordovaLib_Prefix.pch -MMD -MT dependencies -MF /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVWebViewDelegate.d --serialize-diagnostics /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVWebViewDelegate.dia -c /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVWebViewDelegate.m -o /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVWebViewDelegate.o
      
      /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVWebViewDelegate.m:157:47: warning: values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat]
          return [[NSString stringWithFormat:@"%d", _curLoadToken] isEqualToString:loadToken];
                                               ~~   ^~~~~~~~~~~~~
                                               %ld  (long)
      /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVWebViewDelegate.m:163:113: warning: values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat]
          [webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"window.__cordovaLoadToken=%d", _curLoadToken]];
                                                                                                                 ~~   ^~~~~~~~~~~~~
                                                                                                                 %ld  (long)
      /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVWebViewDelegate.m:224:91: warning: values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat]
                              NSLog(@"CDVWebViewDelegate: Detected redirect when loadCount=%d", _loadCount);
                                                                                           ~~   ^~~~~~~~~~
                                                                                           %ld  (long)
      /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVWebViewDelegate.m:241:137: warning: values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat]
                                  NSString* description = [NSString stringWithFormat:@"CDVWebViewDelegate: Navigation started when state=%d", _state];
                                                                                                                                         ~~   ^~~~~~
                                                                                                                                         %ld  (long)
      /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVWebViewDelegate.m:290:90: warning: values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat]
                      NSLog(@"CDVWebViewDelegate: Unexpected loadCount in didStart. count=%d", _loadCount);
                                                                                          ~~   ^~~~~~~~~~
                                                                                          %ld  (long)
      /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVWebViewDelegate.m:310:90: warning: values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat]
                  NSLog(@"CDVWebViewDelegate: Unexpected didStart with state=%d loadCount=%d", _state, _loadCount);
                                                                             ~~                ^~~~~~
                                                                             %ld               (long)
      /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVWebViewDelegate.m:310:98: warning: values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat]
                  NSLog(@"CDVWebViewDelegate: Unexpected didStart with state=%d loadCount=%d", _state, _loadCount);
                                                                                          ~~           ^~~~~~~~~~
                                                                                          %ld          (long)
      7 warnings generated.
      
      CompileC /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVTimer.o Classes/CDVTimer.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
          cd /Users/shaz/Desktop/arm64Test/CordovaLib
          setenv LANG en_US.US-ASCII
          setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch arm64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -miphoneos-version-min=5.0 -iquote /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-generated-files.hmap -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-own-target-headers.hmap -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-all-target-headers.hmap -iquote /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-project-headers.hmap -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Products/Debug-iphoneos/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/DerivedSources/arm64 -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/DerivedSources -F/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Products/Debug-iphoneos -DDEBUG -include /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/PrecompiledHeaders/CordovaLib_Prefix-ffccownzqiybhranoibgbxidybhk/CordovaLib_Prefix.pch -MMD -MT dependencies -MF /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVTimer.d --serialize-diagnostics /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVTimer.dia -c /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVTimer.m -o /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVTimer.o
      
      CompileC /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVShared.o Classes/CDVShared.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
          cd /Users/shaz/Desktop/arm64Test/CordovaLib
          setenv LANG en_US.US-ASCII
          setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch arm64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -miphoneos-version-min=5.0 -iquote /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-generated-files.hmap -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-own-target-headers.hmap -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-all-target-headers.hmap -iquote /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Cordova-project-headers.hmap -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Products/Debug-iphoneos/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/DerivedSources/arm64 -I/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/DerivedSources -F/Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Products/Debug-iphoneos -DDEBUG -include /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/PrecompiledHeaders/CordovaLib_Prefix-ffccownzqiybhranoibgbxidybhk/CordovaLib_Prefix.pch -MMD -MT dependencies -MF /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVShared.d --serialize-diagnostics /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVShared.dia -c /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVShared.m -o /Users/shaz/Library/Developer/Xcode/DerivedData/arm64Test-gridmqqvczzfrndzqwtawzhotgaz/Build/Intermediates/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/CDVShared.o
      
      /Users/shaz/Desktop/arm64Test/CordovaLib/Classes/CDVShared.m:54:12: warning: values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat]
                 self.code,
                 ^~~~~~~~~
      1 warning generated.
      
      
      

      Attachments

        Issue Links

          Activity

            People

              shazron Shazron Abdullah
              shazron Shazron Abdullah
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: