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

build error: suggest explicit braces to avoid ambiguous ‘else’ #219

Closed
huahang opened this issue Apr 11, 2019 · 2 comments
Closed

build error: suggest explicit braces to avoid ambiguous ‘else’ #219

huahang opened this issue Apr 11, 2019 · 2 comments

Comments

@huahang
Copy link

huahang commented Apr 11, 2019

I get a compile error:

/home/huahang/src/rdsn/src/core/src/clientlet.test.cpp: In lambda function:
/home/huahang/src/rdsn/src/core/src/clientlet.test.cpp:117:16: error: suggest explicit braces to avoid ambiguous ‘else’ [-Werror=dangling-else]
if (ERR_OK == ec)

@linmajia
Copy link
Contributor

@huahang , thank you very much for the feedback. Which C++ compiler and version are you using?

@linmajia
Copy link
Contributor

Fixed by PR #223 .

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

2 participants