Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RCTWebSocket - Ignoring return value of function declared with warn_unused_result attribute

I am currently working on a React Native project. Literally, out of nowhere, I just began to experience this error in XCode.

I've done a good amount of Googling to no avail. Has anyone experienced this? More importantly, does anyone have a resolution?

like image 575
dana Avatar asked Aug 02 '16 01:08

dana


1 Answers

To make this clear:

  • Select the error
  • click the build settings tab
  • look for Apple LLVM 8.0 Custom Compiler Flags
  • select the 'other warnings' entry
  • select each flag, click the - to remove them.

This makes the build work.

like image 114
the_5imian Avatar answered Oct 02 '22 13:10

the_5imian