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

Fixed warning #598

Merged
merged 1 commit into from
Mar 2, 2025
Merged

Conversation

MonkeybreadSoftware
Copy link
Contributor

Fixed a warning about possible misuse of comma in the while() with casting it to void.

Fixed a warning about possible misuse of comma in the while() with casting it to void.
@MonkeybreadSoftware
Copy link
Contributor Author

the warning if you like to use it:

In file included from .../jsoncons/include/jsoncons/json_visitor.hpp:24:
.../jsoncons/include/jsoncons/utility/bigint.hpp:1318:18: warning: possible misuse of comma operator here [-Wcomma]
 1318 |                 while ( b >>= 2, b > 0 )
      |                                ^
.../jsoncons/include/jsoncons/utility/bigint.hpp:1318:11: note: cast expression to void to silence warning
 1318 |                 while ( b >>= 2, b > 0 )
      |                         ^~~~~~~
      |                         static_cast<void>( )
1 warning generated.

@danielaparker danielaparker merged commit b85d1eb into danielaparker:master Mar 2, 2025
52 checks passed
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