flann-lib / flann

Fast Library for Approximate Nearest Neighbors
http://people.cs.ubc.ca/~mariusm/flann
Other
2.22k stars 647 forks source link

Fix if indentation warning #428

Open phcerdan opened 5 years ago

phcerdan commented 5 years ago
    || src/cpp/flann/util/any.h: In member function ‘virtual void flann::anyimpl::big_any_policy<T>::static_delete(void**)’:
    src/cpp/flann/util/any.h|81 col 9| warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
    ||    81 |         if (* x) delete (* reinterpret_cast<T**>(x)); *x = NULL;
    ||       |         ^~
    src/cpp/flann/util/any.h|81 col 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;