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:
wmayer
2020-05-25 15:34:43 +02:00
parent fe2664ec65
commit 300e887480
18 changed files with 106 additions and 23 deletions

View File

@@ -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);