diff --git a/scope/src/Makefile.am b/scope/src/Makefile.am index 77bcb98ab..847bebe31 100644 --- a/scope/src/Makefile.am +++ b/scope/src/Makefile.am @@ -58,7 +58,4 @@ scope_la_CFLAGS = $(AM_CFLAGS) $(VTE_CFLAGS) \ -DPLUGINHTMLDOCDIR=\"$(plugindocdir)/html\" \ -Wno-shadow -# http://trac.cppcheck.net/ticket/7243 -AM_CPPCHECKFLAGS = --suppress='unknownEvaluationOrder:$(srcdir)/store/scptreestore.c:909' - include $(top_srcdir)/build/cppcheck.mk diff --git a/scope/src/store/scptreestore.c b/scope/src/store/scptreestore.c index c65956056..4ee0f4510 100644 --- a/scope/src/store/scptreestore.c +++ b/scope/src/store/scptreestore.c @@ -906,7 +906,7 @@ GtkTreePath *scp_tree_store_get_path(VALIDATE_ONLY ScpTreeStore *store, GtkTreeI { gtk_tree_path_append_index(path, ITER_INDEX(iter)); - while ((elem = elem->parent), elem->parent) + for (elem = elem->parent; elem->parent; elem = elem->parent) { gint index = scp_ptr_array_find(elem->parent->children, elem);