-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
Warning when building with NDEBUG #1621
Comments
I think this can be replaced with just emty define like |
@ori-d By the way, with your fix, I think that it silences the diagnostic "empty instruction", but it would emit another diagnostic, "empty statement": would be expanded to: which now emits the "empty statement" diagnostic. which is a silenced empty instruction (so no diagnostic for this one, as it is silenced), and also not an empty statement (so it neither emits the other diagnostic). |
#1622 fixes this. You can't elide away the (0) ... because it may be used in a context where we have to have a valid statement. |
Describe the bug
The compiler emits a warning when building with NDEBUG, due to expanding
NNI_ASSERT
to(0)
Expected behavior
No warnings
Actual Behavior
Warnings emited
To Reproduce
Just build the lib in release mode (or with NDEBUG set)
The text was updated successfully, but these errors were encountered: