mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-11 15:37:27 +00:00
Added -Wextra-semi to Clang build.
Also fixed warnings this generated. Change-Id: If3607907b2dd609f854b7b81225d9cf66af75a60
This commit is contained in:
@@ -113,12 +113,12 @@ class FlatBufService : public grpc_generator::Service {
|
||||
|
||||
int method_count() const {
|
||||
return static_cast<int>(service_->calls.vec.size());
|
||||
};
|
||||
}
|
||||
|
||||
std::unique_ptr<const grpc_generator::Method> method(int i) const {
|
||||
return std::unique_ptr<const grpc_generator::Method>(
|
||||
new FlatBufMethod(service_->calls.vec[i]));
|
||||
};
|
||||
}
|
||||
|
||||
private:
|
||||
const ServiceDef *service_;
|
||||
@@ -235,7 +235,7 @@ class FlatBufFile : public grpc_generator::File {
|
||||
|
||||
int service_count() const {
|
||||
return static_cast<int>(parser_.services_.vec.size());
|
||||
};
|
||||
}
|
||||
|
||||
std::unique_ptr<const grpc_generator::Service> service(int i) const {
|
||||
return std::unique_ptr<const grpc_generator::Service>(
|
||||
|
||||
Reference in New Issue
Block a user