[绍棠] ReactNative : ignoring return value of function declared with warn_unused_result attribute

运行ReactNative 的项目会报错 ignoring return value of function declared with warn_unused_result attribute[绍棠] ReactNative : ignoring return value of function declared with warn_unused_result attribute


解决方法:RCTWebSocket => TAGETS =>Build Settings => Custom Compiler Flags 去掉 -Werror -Wall两个flags 再运行项目就可以了



[绍棠] ReactNative : ignoring return value of function declared with warn_unused_result attribute

[绍棠] ReactNative : ignoring return value of function declared with warn_unused_result attribute