Handle clang 10 warnings:
+ fix -Wtautological-bitwise-compare + fix -Wimplicit-int-float-conversion + fix -Wmisleading-indentation + fix -Wrange-loop-construct + suppress -Wdeprecated-copy of 3rd party libs
This commit is contained in:
@@ -114,6 +114,12 @@
|
||||
# include <QOpenGLTexture>
|
||||
#endif
|
||||
|
||||
#if defined(__clang__) && defined(__has_warning)
|
||||
#if __has_warning("-Wdeprecated-copy")
|
||||
# pragma clang diagnostic ignored "-Wdeprecated-copy"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//#include <OpenGL/glu.h>
|
||||
#include <Eigen/Dense>
|
||||
#include <vector>
|
||||
|
||||
@@ -117,9 +117,9 @@ PyObject* WorkbenchPy::getToolbarItems(PyObject *args)
|
||||
std::list<std::pair<std::string, std::list<std::string>>> bars = getWorkbenchPtr()->getToolbarItems();
|
||||
|
||||
Py::Dict dict;
|
||||
for (const auto it : bars) {
|
||||
for (const auto& it : bars) {
|
||||
Py::List list;
|
||||
for (const auto jt : it.second) {
|
||||
for (const auto& jt : it.second) {
|
||||
list.append(Py::String(jt));
|
||||
}
|
||||
dict.setItem(it.first, list);
|
||||
|
||||
Reference in New Issue
Block a user