Skip to content

Commit c1b2cff

Browse files
authored
[CI] Check compiler warnings. (dmlc#9444)
1 parent 7ce090e commit c1b2cff

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

plugin/federated/federated_server.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,24 @@
1414
namespace xgboost {
1515
namespace federated {
1616

17-
grpc::Status FederatedService::Allgather(grpc::ServerContext* context,
18-
AllgatherRequest const* request, AllgatherReply* reply) {
17+
grpc::Status FederatedService::Allgather(grpc::ServerContext*, AllgatherRequest const* request,
18+
AllgatherReply* reply) {
1919
handler_.Allgather(request->send_buffer().data(), request->send_buffer().size(),
2020
reply->mutable_receive_buffer(), request->sequence_number(), request->rank());
2121
return grpc::Status::OK;
2222
}
2323

24-
grpc::Status FederatedService::Allreduce(grpc::ServerContext* context,
25-
AllreduceRequest const* request, AllreduceReply* reply) {
24+
grpc::Status FederatedService::Allreduce(grpc::ServerContext*, AllreduceRequest const* request,
25+
AllreduceReply* reply) {
2626
handler_.Allreduce(request->send_buffer().data(), request->send_buffer().size(),
2727
reply->mutable_receive_buffer(), request->sequence_number(), request->rank(),
2828
static_cast<xgboost::collective::DataType>(request->data_type()),
2929
static_cast<xgboost::collective::Operation>(request->reduce_operation()));
3030
return grpc::Status::OK;
3131
}
3232

33-
grpc::Status FederatedService::Broadcast(grpc::ServerContext* context,
34-
BroadcastRequest const* request, BroadcastReply* reply) {
33+
grpc::Status FederatedService::Broadcast(grpc::ServerContext*, BroadcastRequest const* request,
34+
BroadcastReply* reply) {
3535
handler_.Broadcast(request->send_buffer().data(), request->send_buffer().size(),
3636
reply->mutable_receive_buffer(), request->sequence_number(), request->rank(),
3737
request->root());

tests/ci_build/build_via_cmake.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fi
2424
rm -rf build
2525
mkdir build
2626
cd build
27-
cmake .. ${cmake_args} -DGOOGLE_TEST=ON -DUSE_DMLC_GTEST=ON -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_ALL_WARNINGS=ON -GNinja ${cmake_prefix_flag} -DHIDE_CXX_SYMBOLS=ON
27+
cmake .. ${cmake_args} -DGOOGLE_TEST=ON -DUSE_DMLC_GTEST=ON -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_ALL_WARNINGS=ON -DCMAKE_COMPILE_WARNING_AS_ERROR=ON -GNinja ${cmake_prefix_flag} -DHIDE_CXX_SYMBOLS=ON
2828
ninja clean
2929
time ninja -v
3030
cd ..

0 commit comments

Comments
 (0)