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

Skip to content

Conversation

@chenbd
Copy link
Contributor

@chenbd chenbd commented Feb 2, 2019

error: control may reach end of non-void function
[-Werror,-Wreturn-type]

error: control may reach end of non-void function
[-Werror,-Wreturn-type]
Copy link
Member

@kazuho kazuho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR.

Could we resolve the issue by changing assert to h2o_fatal (because the latter is called even when NBEBUG is set and because it has the no-return attribute).

I am hesitant to adding code (it's a complexity!) that newer runs just to suppress compiler warnings.

@chenbd
Copy link
Contributor Author

chenbd commented Feb 12, 2019

Fixed according to your comments.

@kazuho kazuho merged commit 5766619 into h2o:master Feb 12, 2019
@kazuho
Copy link
Member

kazuho commented Feb 12, 2019

Thank you for the changes!

@chenbd chenbd deleted the libh2o-error-return-type branch February 16, 2019 03:25
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