From 22f90878e1b55f8b6358c2cb5342867033680079 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 8 May 2023 09:45:03 +0100 Subject: [PATCH] Fixed cppecheck reported issue --- cmake/cppcheck-suppression-list.txt | 1 + src/vsg/io/Path.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/cppcheck-suppression-list.txt b/cmake/cppcheck-suppression-list.txt index 35fcbf828..643fefb60 100644 --- a/cmake/cppcheck-suppression-list.txt +++ b/cmake/cppcheck-suppression-list.txt @@ -134,6 +134,7 @@ returnTempReference:*/include/vsg/core/Inherit.h // suppress inappropriate warning of variableScope variableScope:*/include/vsg/utils/SharedObjects.h variableScope:*/src/vsg/utils/SharedObjects.cpp +variableScope:*/src/vsg/app/CompileManager.cpp // suppress really stupid warning of pointerLessThanZero pointerLessThanZero:*/src/vsg/app/Viewer.cpp diff --git a/src/vsg/io/Path.cpp b/src/vsg/io/Path.cpp index 34327fb55..6215dc271 100644 --- a/src/vsg/io/Path.cpp +++ b/src/vsg/io/Path.cpp @@ -221,7 +221,7 @@ Path Path::lexically_normal() const prev_itr = itr; --prev_itr; } - else if (itr != path_segments.end()) + else { prev_itr = itr; ++itr;