Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bug fix variable 'actual_iterations' set but not used #1517

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

Merged
merged 3 commits into from
Dec 19, 2022

Conversation

yuryf-google
Copy link
Contributor

Compiling the project in Clang 15 without -Wno-unused-but-set-variable flag the following error is generated:

benchmark-src/test/options_test.cc:70:10: error: variable 'actual_iterations' set but not used [-Werror,-Wunused-but-set-variable]
  size_t actual_iterations = 0;
         ^

Compiling the project in clang 15 without -Wno-unused-but-set-variable flag the following error is generated:

benchmark-src/test/options_test.cc:70:10: error: variable 'actual_iterations' set but not used [-Werror,-Wunused-but-set-variable]
  size_t actual_iterations = 0;
         ^
dmah42
dmah42 previously approved these changes Dec 19, 2022
@dmah42
Copy link
Member

dmah42 commented Dec 19, 2022

please take a look at the clang-format-lint issue

@yuryf-google
Copy link
Contributor Author

Thanks a lot dmah42@ ! Taking a look on clang-format-lint issue now.

@dmah42 dmah42 merged commit 62edc4f into google:main Dec 19, 2022
@dmah42
Copy link
Member

dmah42 commented Dec 19, 2022

thanks!

mike-malburg pushed a commit to TechSmith/benchmark that referenced this pull request Jul 26, 2024
* Bug fix variable 'actual_iterations' set but not used

Compiling the project in clang 15 without -Wno-unused-but-set-variable flag the following error is generated:

benchmark-src/test/options_test.cc:70:10: error: variable 'actual_iterations' set but not used [-Werror,-Wunused-but-set-variable]
  size_t actual_iterations = 0;
         ^

* Adjust according formatting of `clang-format`

Co-authored-by: dominic hamon <[email protected]>
mike-malburg added a commit to TechSmith/benchmark that referenced this pull request Jul 26, 2024
Bug fix variable 'actual_iterations' set but not used (google#1517)
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