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

Fix iOS warnings in Media Capture plugin

    XMLWordPrintableJSON

Details

    Description

      CDVCapture.m:519:19: warning: 
            incompatible pointer types initializing 'NSString *__strong' with an expression of type 'CGPathRef'
            (aka 'const struct CGPath *') [-Wincompatible-pointer-types]
              NSString* moviePath = [[info objectForKey:UIImagePickerControllerMediaURL] path];
                        ^           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~CDVCapture.m:819:60: warning: 
            comparison of address of 'UIAccessibilityAnnouncementNotification' not equal to a null pointer is always true
            [-Wtautological-pointer-compare]
              BOOL isUIAccessibilityAnnouncementNotification = (&UIAccessibilityAnnouncementNotification != NULL);
                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    ~~~~
      2 warnings generated.
      

      Attachments

        Activity

          People

            macdonst Simon MacDonald
            shazron Shazron Abdullah
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: