Skip to content

Commit 2313edd

Browse files
yfeldblummeta-codesync[bot]
authored andcommitted
address violations of warning unreachable-code-return
Summary: TSIA. Reviewed By: iahs Differential Revision: D95684728 fbshipit-source-id: 3d5976286fb101bfb819e2d89c87c35dea2633e8
1 parent 1225c8f commit 2313edd

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

thrift/lib/cpp/test/loadgen/GaussianMixtureModel.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ double GaussianMixtureModel::getSample() {
7474
}
7575
LOG(FATAL)
7676
<< "The weights vector or the uniform random real are probably wrong.";
77-
return 0;
7877
}
7978

8079
} // namespace apache::thrift::loadgen

thrift/lib/cpp2/server/CPUConcurrencyController.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ uint32_t CPUConcurrencyController::getLimitUsage(
355355
return totalRequestSince * 1000L / milliSince;
356356
}
357357
default:
358-
DCHECK(false);
358+
LOG(DFATAL) << "unexpected CPUConcurrencyController method";
359359
return 0;
360360
}
361361
}

thrift/lib/cpp2/test/InteractionTest.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ TEST(InteractionTest, PrioritizedInteractionRequest) {
158158
std::this_thread::sleep_for(std::chrono::milliseconds(10));
159159
if (std::chrono::steady_clock::now() - start > std::chrono::seconds(5)) {
160160
FAIL() << "Timed out waiting for requests to be queued";
161-
return;
162161
}
163162
}
164163

thrift/lib/cpp2/transport/rocket/server/ThriftRocketServerHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ void ThriftRocketServerHandler::handleInjectedFault(
10771077
<< connContext_.getPeerAddress()->getAddressStr();
10781078
return;
10791079
case InjectedFault::DISCONNECT:
1080-
return request->closeConnection(
1080+
request->closeConnection(
10811081
folly::make_exception_wrapper<TApplicationException>(
10821082
TApplicationException::INJECTED_FAILURE, "injected failure"));
10831083
return;

0 commit comments

Comments
 (0)