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

Fix unit tests compilation by non-gnu/msvc compilers with c++11 support. #1691

Merged
merged 2 commits into from
Nov 1, 2023
Merged

Fix unit tests compilation by non-gnu/msvc compilers with c++11 support. #1691

merged 2 commits into from
Nov 1, 2023

Conversation

ivafanas
Copy link
Contributor

@ivafanas ivafanas commented Nov 1, 2023

donotoptimize_test.cc could not be compiled under non-gnu / non-msvc compilers, because only deprecated version of DoNotOptimize is available for these compilers. Tests are compiled with -Werror. Patch fixes test compilation by providing non-deprecated version of DoNotOptimize for compilers with c++11 standard support.

Copy link

google-cla bot commented Nov 1, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

ivafanas and others added 2 commits November 1, 2023 12:24
…11 support.

donotoptimize_test.cc could not be compiled under non-gnu / non-msvc compilers,
because only deprecated version of DoNotOptimize is available for these
compilers. Tests are compiled with -Werror. Patch fixes test compilation by
providing non-deprecated version of DoNotOptimize for compilers with c++11
standard support.
@dmah42 dmah42 merged commit b40db86 into google:main Nov 1, 2023
54 of 60 checks passed
@dmah42
Copy link
Member

dmah42 commented Nov 1, 2023

thanks!

@ivafanas
Copy link
Contributor Author

ivafanas commented Nov 1, 2023

Thank you too!

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.

2 participants