From cb49c4a47e04a7da80c7867bfcd6ff57ba22b6cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Tur=C3=A1nyi?= Date: Fri, 10 Sep 2021 21:57:23 +0200 Subject: [PATCH] fix: Remove redundant assignment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This caused gcc to emit a 'operation on ‘inComment’ may be undefined [-Wsequence-point]' warning. --- TextEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TextEditor.cpp b/TextEditor.cpp index 8d16d619..c8e73aec 100644 --- a/TextEditor.cpp +++ b/TextEditor.cpp @@ -2389,7 +2389,7 @@ void TextEditor::ColorizeInternal() withinSingleLineComment = true; } - inComment = inComment = (commentStartLine < currentLine || (commentStartLine == currentLine && commentStartIndex <= currentIndex)); + inComment = (commentStartLine < currentLine || (commentStartLine == currentLine && commentStartIndex <= currentIndex)); line[currentIndex].mMultiLineComment = inComment; line[currentIndex].mComment = withinSingleLineComment;