[Cmake-commits] [cmake-commits] king committed cmDependsFortranLexer.cxx 1.13 1.14 cmDependsFortranLexer.in.l 1.13 1.14

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Jun 12 10:46:07 EDT 2009


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv25929/Source

Modified Files:
	cmDependsFortranLexer.cxx cmDependsFortranLexer.in.l 
Log Message:
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.


Index: cmDependsFortranLexer.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmDependsFortranLexer.cxx,v
retrieving revision 1.13
retrieving revision 1.14
diff -C 2 -d -r1.13 -r1.14
*** cmDependsFortranLexer.cxx	24 Apr 2008 03:53:20 -0000	1.13
--- cmDependsFortranLexer.cxx	12 Jun 2009 14:46:02 -0000	1.14
***************
*** 656,659 ****
--- 656,660 ----
    - 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(;;)
***************
*** 2333,2337 ****
      /* Destroy the main struct (reentrant only). */
      cmDependsFortran_yyfree ( yyscanner , yyscanner );
-     yyscanner = NULL;
      return 0;
  }
--- 2334,2337 ----

Index: cmDependsFortranLexer.in.l
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmDependsFortranLexer.in.l,v
retrieving revision 1.13
retrieving revision 1.14
diff -C 2 -d -r1.13 -r1.14
*** cmDependsFortranLexer.in.l	24 Apr 2008 03:53:20 -0000	1.13
--- cmDependsFortranLexer.in.l	12 Jun 2009 14:46:03 -0000	1.14
***************
*** 38,41 ****
--- 38,42 ----
    - 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(;;)



More information about the Cmake-commits mailing list