mirror of
https://github.com/google/flatbuffers.git
synced 2026-11-12 15:06:21 +00:00
Removing _LIBCPP_DISABLE_UNUSED_STRUCT_WARNINGS from libc++ enables
`[[gnu::__warn_unused__]]` on standard library types (such as `std::string` and `std::set`), surfacing `-Wunused-variable` warnings in `//third_party/flatbuffers`. See [upstream LLVM commit](https://github.com/llvm/llvm-project/commit/ab8b037ef7b398aa864959a69f328fa69b567f74) for reference. Remove unreferenced variable declarations across the code generators and binary annotator whose initializers have no observable side effects. PiperOrigin-RevId: 999136370
This commit is contained in:
committed by
Copybara-Service
parent
f58d5768f1
commit
e38e7aa00c
@@ -504,7 +504,6 @@ grpc::string GenerateInterface(grpc_generator::File* file,
|
||||
const grpc::string& filename) {
|
||||
grpc::string output;
|
||||
|
||||
std::set<grpc::string> generated_functions;
|
||||
std::map<grpc::string, grpc::string> vars;
|
||||
|
||||
vars["PATH"] = file->package();
|
||||
|
||||
Reference in New Issue
Block a user