Skip to content

v4.1.x: Fix missed compiler warnings #8255

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 25, 2020

Conversation

jsquyres
Copy link
Member

@jsquyres jsquyres commented Nov 25, 2020

Bring over a few more compiler warnings fixes from master to finish cleaning up the v4.1.x warnings.

See individual commit messages for more details.

Fixes #8253

jsquyres and others added 3 commits November 25, 2020 15:09
Add some "const"s that needed to be applied here on the v4.1.x branch,
effectively by cherry-picking part of b65ec27 from master.

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
Remove the pack/unpack pragma around net/if.h on MacOS, which
was added to fix a bug in MacOS X 10.4.x on 64-bit platforms.
The bug was fixed in Mac OS X 10.5.0 and, sometime in the last
11 years, compilers started emitting warnings about the fact
that the Apple header stomped over the pragma pack settings
from the workaround.  We already don't support versions of MacOS
earlier than 10.5, so there's no point in keeping the workaround.

Signed-off-by: Brian Barrett <bbarrett@amazon.com>
(cherry picked from commit a25df3f)
Open MPI doesn't support any transports on MacOS which require
memory manager hooks.  The memory patcher component uses the
syscall interface, which has been deprecated in recent versions
of MacOS.  Since we don't need it and it emits warnings about
deprecation, disable the memory patcher component on MacOS.

Fixes open-mpi#5671

Signed-off-by: Brian Barrett <bbarrett@amazon.com>
(cherry picked from commit 19e16d5)
@rajachan rajachan merged commit 6e2c8cf into open-mpi:v4.1.x Nov 25, 2020
@jsquyres jsquyres deleted the pr/v4.1.x/fix-missed-warnings branch November 25, 2020 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants