Skip to content

Commit

Permalink
UCS/SOCK: Fix RPM build with gcc11 on fedora34
Browse files Browse the repository at this point in the history
  • Loading branch information
yosefe committed Apr 12, 2021
1 parent c14a404 commit 017075f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
## 1.10.1 (TBD)
### Bugfixes:
* Fix Infiniband port speed detection for HDR100
* Fix build issue in sock.c on gcc11

## 1.10.0 (March 9, 2021)
### Features:
Expand Down
1 change: 1 addition & 0 deletions src/ucs/sys/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ ucs_status_t ucs_socket_server_init(const struct sockaddr *saddr, socklen_t sock
int ret, fd;

/* Create the server socket for accepting incoming connections */
fd = -1; /* Suppress compiler warning */
status = ucs_socket_create(saddr->sa_family, SOCK_STREAM, &fd);
if (status != UCS_OK) {
goto err;
Expand Down
2 changes: 1 addition & 1 deletion test/gtest/common/gtest-all.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7489,7 +7489,7 @@ void StackLowerThanAddress(const void* ptr, bool* result) {
}

bool StackGrowsDown() {
int dummy;
int dummy = 0;
bool result;
StackLowerThanAddress(&dummy, &result);
return result;
Expand Down

0 comments on commit 017075f

Please sign in to comment.