Skip to content

Commit b733533

Browse files
committed
CXX-279 return value from all control paths
1 parent c277257 commit b733533

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

SConstruct

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,6 @@ if len(mongoclientVersionComponents) not in (3,4):
305305
print("Error: client version most be of the form w.x.y[-rcz][-string]")
306306
Exit(1)
307307

308-
mongoclientVersionRC = mongoclientVersionComponents[3:][0]
309-
310308
env = Environment( BUILD_DIR=buildDir,
311309
VARIANT_DIR=variantDir,
312310
EXTRAPATH=get_option("extrapath"),
@@ -321,7 +319,6 @@ env = Environment( BUILD_DIR=buildDir,
321319
MONGOCLIENT_VERSION_MAJOR=mongoclientVersionComponents[0],
322320
MONGOCLIENT_VERSION_MINOR=mongoclientVersionComponents[1],
323321
MONGOCLIENT_VERSION_PATCH=mongoclientVersionComponents[2],
324-
MONGOCLIENT_VERSION_RC=mongoclientVersionRC,
325322
INSTALL_DIR=get_option("prefix"),
326323
)
327324

src/mongo/client/scoped_db_conn_test.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,8 @@ namespace mongo {
188188
if ((client_fd = ::accept(_fd, client_sa.get_address(), &client_sa.size)) == -1) {
189189
perror("accept");
190190
std::abort();
191-
} else {
192-
return new TCPSocket(client_sa, client_fd);
193191
}
192+
return new TCPSocket(client_sa, client_fd);
194193
}
195194

196195
private:

0 commit comments

Comments
 (0)