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

nghttp2_session: Allow for compiling library with -DNDEBUG set #919

Merged
merged 1 commit into from May 18, 2017

Conversation

projectgus
Copy link
Contributor

Hi,

This is a very small fix for building with -DNDEBUG set (as described in 0c49e5d). If assert is compiled out, these functions otherwise fail to compile as they don't return a value.

Can replace the assert(0)s entirely if that's desirable, but I noticed abort() isn't used anywhere else in the library code so I figure this keeps consistency - if NDEBUG is not set then the abort() call should be compiled out as unreachable code.

Thanks for all your work maintaining this library. :)

@tatsuhiro-t
Copy link
Member

Thank you for the PR. LGTM!

@tatsuhiro-t tatsuhiro-t merged commit 2bf3680 into nghttp2:master May 18, 2017
@tatsuhiro-t tatsuhiro-t added this to the v1.23.0 milestone May 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants