Skip to content

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.

@google-cla
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
@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