summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsFortranLexer.in.l
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-06-12 14:46:03 (GMT)
committerBrad King <brad.king@kitware.com>2009-06-12 14:46:03 (GMT)
commit590a0c809e558f05d2a17bcd4ea7e4e4ba4e9125 (patch)
tree04aa546574dc8a1c6849adf94055918935985ae8 /Source/cmDependsFortranLexer.in.l
parenta73071ca175c70db95271688ef9c7711e700f9a7 (diff)
downloadCMake-590a0c809e558f05d2a17bcd4ea7e4e4ba4e9125.zip
CMake-590a0c809e558f05d2a17bcd4ea7e4e4ba4e9125.tar.gz
CMake-590a0c809e558f05d2a17bcd4ea7e4e4ba4e9125.tar.bz2
COMP: Remove useless assignment in Fortran lexer
The generated Fortran dependency scanning lexer includes an assignment to a local variable that is unused. Borland warns, so we remove the assignment.
Diffstat (limited to 'Source/cmDependsFortranLexer.in.l')
-rw-r--r--Source/cmDependsFortranLexer.in.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmDependsFortranLexer.in.l b/Source/cmDependsFortranLexer.in.l
index 8cbec27..1433ac2 100644
--- a/Source/cmDependsFortranLexer.in.l
+++ b/Source/cmDependsFortranLexer.in.l
@@ -37,6 +37,7 @@ Modify cmDependsFortranLexer.cxx:
- remove TABs
- remove "yyscanner" argument from these methods:
yy_fatal_error, cmDependsFortran_yyalloc, cmDependsFortran_yyrealloc, cmDependsFortran_yyfree
+ - remove "yyscanner = NULL" from end of cmDependsFortran_yylex_destroy
- remove all YY_BREAK lines occurring right after return statements
- change while ( 1 ) to for(;;)