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

fixing unreachable code in lsh_table.h #377

Merged
merged 1 commit into from
Jun 7, 2018

Conversation

ahmadhasan2k8
Copy link
Contributor

After a throw, return is not actually reachable. Code should immediately return after throw. So, it creates an unreachable code warning. With a -wx flag these warnings are considered as errors which is important to fix I believe. To keep the code consistent with the rest of the code removing the throw seemed more appropriate and returning a -1 seems logical.

Thanks,
Ahmad

@mariusmuja mariusmuja merged commit f3a17cd into flann-lib:master Jun 7, 2018
@ahmadhasan2k8
Copy link
Contributor Author

Thank you for merging.

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