New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"missing-noescape" when building Objective-C library with latest clang #3759
Comments
Just confirming, which Xcode are you using? 9.0 or a prerelease? Are you building from cocoapods or manually adding sources and enabling this warning? |
Hi, |
Since this isn't in current release (9.0.1) or the latest beta (9.1b2), we will hold off on making changes. Could you add the |
Yes, that was the elected workaround. |
As of Xcode 9.2, clang does not understand this flag. |
Thanks for the update! |
@sergiocampama do you want to double check this again with Xcode 9.4.x and 10? Assuming it is supported now, we might need some preprocessor shims to ensure we still build with older Xcodes. |
#4729 added the missing annotation for this, and opening the Xcode project in Xcode 10.1 shows the warning defaults to on, so we should be covered going forward if any other block api is added to the library. |
…((noescape)) workaround/fix from protocolbuffers/protobuf#3759
Clang recently introduced the "missing-noescape" warning. This results in a new warning that prevents from building the Objective-C library:
/third_party/protobuf/objectivec/GPBArray.m:2540:82: error: parameter of overriding method should be annotated with attribute((noescape)) [-Werror,-Wmissing-noescape]
The text was updated successfully, but these errors were encountered: