Skip to content

v5.0.x: ompi: rename assert variables to mpi_assert#8594

Merged
gpaulsen merged 1 commit intoopen-mpi:v5.0.xfrom
hjelmn:v5.0.x_for_the_love_of_all_things_DO_NOT_NAME_VARIABLES_ASSERT
Mar 15, 2021
Merged

v5.0.x: ompi: rename assert variables to mpi_assert#8594
gpaulsen merged 1 commit intoopen-mpi:v5.0.xfrom
hjelmn:v5.0.x_for_the_love_of_all_things_DO_NOT_NAME_VARIABLES_ASSERT

Conversation

@hjelmn
Copy link
Member

@hjelmn hjelmn commented Mar 11, 2021

There already exists an identifier with the name assert. It is not
appropriate to use this name for variables in C. This commit changes
these variable names to mpi_assert. This should address an issue where
clang-format gives the wrong result when doing bit-wise-and operations
on these variables.

Signed-off-by: Nathan Hjelm hjelmn@google.com
(cherry picked from commit aaabe3d)

There already exists an identifier with the name assert. It is not
appropriate to use this name for variables in C. This commit changes
these variable names to mpi_assert. This should address an issue where
clang-format gives the wrong result when doing bit-wise-and operations
on these variables.

Signed-off-by: Nathan Hjelm <hjelmn@google.com>
(cherry picked from commit aaabe3d)
@hjelmn hjelmn requested a review from awlauria March 11, 2021 21:18
@awlauria awlauria requested review from gpaulsen and jladd-mlnx March 12, 2021 15:26
@awlauria awlauria changed the title ompi: rename assert variables to mpi_assert v5.0.x: ompi: rename assert variables to mpi_assert Mar 12, 2021
@awlauria awlauria added this to the v5.0.0 milestone Mar 12, 2021
@gpaulsen gpaulsen merged commit 0d6a41e into open-mpi:v5.0.x Mar 15, 2021
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