-1

How Do I fix

FIRStorageUploadTask *uploadTask = [uploadRef putData:data metadata:metadata completion:^(FIRStorageMetadata * Nullable

enter image description here

rmaddy
  • 307,833
  • 40
  • 508
  • 550

1 Answers1

1

Just remove FIRStorageUploadTask *uploadTask = and keep

[uploadRef putData:data metadata:metadata 

Also use @discardableResult if it again throws warning of unused result

OR

If you want to particularly suppress a warning you can check this answer: https://stackoverflow.com/a/25700438/468724

Community
  • 1
  • 1
Inder Kumar Rathore
  • 38,350
  • 17
  • 126
  • 179