SocketRocket icon indicating copy to clipboard operation
SocketRocket copied to clipboard

Ignoring return value of function declared with 'warn_unused_result' attribute

Open nplisuit opened this issue 9 years ago • 3 comments

Using cocoapods with xcode 8.3.

nplisuit avatar Mar 30 '17 05:03 nplisuit

happend me to after update Xcode 8.3

RoeeNadam avatar Apr 06 '17 07:04 RoeeNadam

I can support the same issue when trying to push a new version of my library using SockeRocket:

pod trunk push

[!] Found podspec `MQTTClient.podspec`
Updating spec repo `master`
Validating podspec
 -> MQTTClient (0.9.0)
    - WARN  | [MQTTClient/Websocket,MQTTClient/WebsocketL] xcodebuild:  SocketRocket/SocketRocket/SRWebSocket.m:509:5: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result]
    - WARN  | [MQTTClient/Websocket,MQTTClient/WebsocketL] xcodebuild:  SocketRocket/SocketRocket/SRWebSocket.m:629:13: warning: enumeration value 'NSURLNetworkServiceTypeCallSignaling' not handled in switch [-Wswitch]
    - WARN  | [MQTTClient/Websocket,MQTTClient/WebsocketL] xcodebuild:  SocketRocket/SocketRocket/SRWebSocket.m:1485:9: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result]

[!] The spec did not pass validation, due to 3 warnings (but you can use `--allow-warnings` to ignore 

ckrey avatar May 10 '17 14:05 ckrey

Hey, can we please get a new release off of master to fix this? What's blocking a release?

Sooo many pods depend on SocketRocket, and everybody has to --ignore_warnings on their trunk pushes to get around this. Not to mention the thousands of apps that have build warnings thanks to these pods in turn. One and a half years ago you were going to push a new version.

If you're unable to maintain the pod, is it possible to add some more maintainers to the project? Us at Lookback can volunteer.

nevyn-lookback avatar Jan 26 '18 14:01 nevyn-lookback