aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-02-06 09:02:21 +1100
committerNeil <nyamatongwe@gmail.com>2014-02-06 09:02:21 +1100
commit05d89474833b6841a9ce12f6ab0276ea9d7ad015 (patch)
tree56b37ecf8c1d7a1dc22bea07cdfe762085494b61
parent9dcbef9e17af191c13c6b5c90ae2fc71f0be8583 (diff)
downloadscintilla-mirror-05d89474833b6841a9ce12f6ab0276ea9d7ad015.tar.gz
Avoid warning for excessive variable scope.
-rw-r--r--cppcheck.suppress1
-rw-r--r--lexers/LexFortran.cxx3
2 files changed, 1 insertions, 3 deletions
diff --git a/cppcheck.suppress b/cppcheck.suppress
index f6c54313c..9aed019cf 100644
--- a/cppcheck.suppress
+++ b/cppcheck.suppress
@@ -16,7 +16,6 @@ variableScope:scintilla/lexers/LexCoffeeScript.cxx
variableScope:scintilla/lexers/LexCSS.cxx
useInitializationList:scintilla/lexers/LexD.cxx
variableScope:scintilla/lexers/LexErlang.cxx
-variableScope:scintilla/lexers/LexFortran.cxx
variableScope:scintilla/lexers/LexGui4Cli.cxx
variableScope:scintilla/lexers/LexInno.cxx
variableScope:scintilla/lexers/LexLaTeX.cxx
diff --git a/lexers/LexFortran.cxx b/lexers/LexFortran.cxx
index a91828289..280250c29 100644
--- a/lexers/LexFortran.cxx
+++ b/lexers/LexFortran.cxx
@@ -316,7 +316,6 @@ static void FoldFortranDoc(unsigned int startPos, int length, int initStyle,
isPrevLine = false;
}
char chNext = styler[startPos];
- char chNextNonBlank;
int styleNext = styler.StyleAt(startPos);
int style = initStyle;
int levelDeltaNext = 0;
@@ -327,7 +326,7 @@ static void FoldFortranDoc(unsigned int startPos, int length, int initStyle,
for (unsigned int i = startPos; i < endPos; i++) {
char ch = chNext;
chNext = styler.SafeGetCharAt(i + 1);
- chNextNonBlank = chNext;
+ char chNextNonBlank = chNext;
bool nextEOL = false;
if (IsALineEnd(chNextNonBlank)) {
nextEOL = true;