diff --git a/src/plugins/cppeditor/cpphighlighter.cpp b/src/plugins/cppeditor/cpphighlighter.cpp index 447f442d2b3..a02d3fe0900 100644 --- a/src/plugins/cppeditor/cpphighlighter.cpp +++ b/src/plugins/cppeditor/cpphighlighter.cpp @@ -322,11 +322,9 @@ void CppHighlighter::highlightWord(QStringRef word, int position, int length) } } -void CppHighlighter::highlightDoxygenComment(const QString &text, int position, - int length) +void CppHighlighter::highlightDoxygenComment(const QString &text, int position, int) { int initial = position; - int i = position; const QChar *uc = text.unicode(); const QChar *it = uc + position;