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

variable 'j' set but not used #1288

Open
jolaf opened this issue Aug 24, 2024 · 1 comment
Open

variable 'j' set but not used #1288

jolaf opened this issue Aug 24, 2024 · 1 comment

Comments

@jolaf
Copy link

jolaf commented Aug 24, 2024

Building cryptopp-cmake v8.9.0 with cmake v3.22.1 under Android Studio on Windows 10 produces the following warning:

C/C++: ninja: Entering directory `[...]'
C/C++: [...]/cryptopp-cmake/cryptopp/validat1.cpp:1053:31: warning: variable 'j' set but not used [-Wunused-but-set-variable]
C/C++:  1053 |             for (unsigned int j=0; !source.AnyRetrievable(); ++j)
C/C++:       |                               ^
C/C++: 1 warning generated.
@jolaf
Copy link
Author

jolaf commented Sep 18, 2024

I'm not sure why for loop is used, probably it should have been while (!source.AnyRetrievable()) ?

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

No branches or pull requests

1 participant