Skip to content

Removing _LIBCPP_DISABLE_UNUSED_STRUCT_WARNINGS from libc++ enables - #9438

Draft
copybara-service[bot] wants to merge 1 commit into
masterfrom
8375223DD870B6E15E55C9FD71C2979C
Draft

copybara-service[bot] wants to merge 1 commit into
masterfrom
8375223DD870B6E15E55C9FD71C2979C

Conversation

@copybara-service

Copy link
Copy Markdown

Removing _LIBCPP_DISABLE_UNUSED_STRUCT_WARNINGS from libc++ enables
[[gnu::__warn_unused__]] on standard library types (such as
std::string), surfacing -Wunused-variable warnings in
//third_party/flatbuffers. See upstream LLVM commit for reference.

Remove the unreferenced get_field declaration in src/idl_gen_java.cpp
and offset declaration in src/idl_gen_swift.cpp (GenerateVerifier),
and update the corresponding hunks in patches/java_default_vectors_and_getclass.patch
and patches/swift_obfuscation.patch.

PiperOrigin-RevId: 1007533554
@copybara-service
copybara-service Bot force-pushed the 8375223DD870B6E15E55C9FD71C2979C branch from b91d818 to a78ddf5 Compare October 27, 2026 21:28

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant