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

gcc emits build warnings for misleading indentation #491

Open
alokpr opened this issue May 2, 2022 · 0 comments · May be fixed by #492
Open

gcc emits build warnings for misleading indentation #491

alokpr opened this issue May 2, 2022 · 0 comments · May be fixed by #492

Comments

@alokpr
Copy link

alokpr commented May 2, 2022

Build fails with -Wall -Werror:

flann/util/any.h: In member function 'virtual void flann::anyimpl::big_any_policy<T>::static_delete(void**)':
flann/util/any.h:81:9: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
   81 |         if (* x) delete (* reinterpret_cast<T**>(x)); *x = NULL;
      |         ^~
flann/util/any.h:81:55: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   81 |         if (* x) delete (* reinterpret_cast<T**>(x)); *x = NULL;
      |                                                       ^
alokpr pushed a commit to alokpr/flann that referenced this issue May 2, 2022
@alokpr alokpr linked a pull request May 2, 2022 that will close this issue
alokpr added a commit to alokpr/flann that referenced this issue May 2, 2022
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 a pull request may close this issue.

1 participant