diff options
-rw-r--r-- | cppcheck.suppress | 9 | ||||
-rw-r--r-- | src/AutoComplete.cxx | 2 | ||||
-rw-r--r-- | src/Decoration.cxx | 2 |
3 files changed, 2 insertions, 11 deletions
diff --git a/cppcheck.suppress b/cppcheck.suppress index e282ef68a..c1b047974 100644 --- a/cppcheck.suppress +++ b/cppcheck.suppress @@ -13,15 +13,6 @@ useStlAlgorithm // Written with variable for consistency
knownArgument:scintilla/src/SparseVector.h
-// This is an internal error in cppcheck
-internalAstError:scintilla\src\PerLine.cxx
-
-// Treats boolean access as narrowing value: if (x) { if (x != ']')
-knownConditionTrueFalse:scintilla\src\RESearch.cxx
-
-// cppcheck appears to be confused about bool versus pointer
-identicalInnerCondition:scintilla\gtk\ScintillaGTKAccessible.cxx
-
// Some non-explicit constructors are used for conversions or are private to lexers
noExplicitConstructor
diff --git a/src/AutoComplete.cxx b/src/AutoComplete.cxx index 87077e92a..51eb0f0ee 100644 --- a/src/AutoComplete.cxx +++ b/src/AutoComplete.cxx @@ -272,7 +272,7 @@ void AutoComplete::Select(const char *word) { } } else if (cond < 0) { end = pivot - 1; - } else if (cond > 0) { + } else { // cond > 0 start = pivot + 1; } } diff --git a/src/Decoration.cxx b/src/Decoration.cxx index 77b2894b2..4fd6b3b58 100644 --- a/src/Decoration.cxx +++ b/src/Decoration.cxx @@ -263,7 +263,7 @@ int DecorationList<POS>::AllOnFor(Sci::Position position) const noexcept { for (const std::unique_ptr<Decoration<POS>> &deco : decorationList) { if (deco->rs.ValueAt(static_cast<POS>(position))) { if (deco->Indicator() < static_cast<int>(Scintilla::IndicatorNumbers::Ime)) { - mask |= 1 << deco->Indicator(); + mask |= 1u << deco->Indicator(); } } } |