Skip to content

Conversation

@bwbarrett
Copy link
Member

Do not use a temporary variable for holding the loaded value
for ll/sc calls, eliminiating warnings about type mismatches
for places where the compiler can implicitly cast into a
register type anyway. This likely removes a slight bit of
type safety, but also removes an ugly to fix warning about
the use of typeof() on recent LLVM compilers that would be
near impossible to fix and would hide all other warnings in
noise. Given the relatively infrequent use of LL/SC and the
ability to pay close attention when using it anyway, this is
probably the more sane call.

Signed-off-by: Brian Barrett bbarrett@amazon.com

Do not use a temporary variable for holding the loaded value
for ll/sc calls, eliminiating warnings about type mismatches
for places where the compiler can implicitly cast into a
register type anyway.  This likely removes a slight bit of
type safety, but also removes an ugly to fix warning about
the use of typeof() on recent LLVM compilers that would be
near impossible to fix and would hide all other warnings in
noise.  Given the relatively infrequent use of LL/SC and the
ability to pay close attention when using it anyway, this is
probably the more sane call.

Signed-off-by: Brian Barrett <bbarrett@amazon.com>
@jsquyres
Copy link
Member

bot:ompi:retest

@bwbarrett bwbarrett merged commit 37c9045 into open-mpi:master Jan 20, 2022
@bwbarrett bwbarrett deleted the bugfix/llsc-warnings branch January 20, 2022 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants