Skip to content
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

quick_tests/affinity: fix warning #13468

Closed
wants to merge 1 commit into from

Conversation

marcfehling
Copy link
Member

@marcfehling marcfehling commented Mar 1, 2022

1/7 Test #2: affinity.release .................***Failed    6.17 sec
/home/runner/work/dealii/dealii/tests/quick_tests/affinity.cc: In function ‘bool getaffinity(unsigned int&, unsigned int&)’:
/home/runner/work/dealii/dealii/tests/quick_tests/affinity.cc:53:42: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
   mask = *reinterpret_cast<int *>(&my_set);
                                          ^
cc1plus: all warnings being treated as errors

As mask is of type unsigned int, this should fix the problem.

Part of #13467 (comment).

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.

None yet

1 participant