ソースを参照

COMP: Removing #line directives from .h file to avoid bogus Sun warning.

Brad King 21 年 前
コミット
289c74541a
2 ファイル変更2 行追加8 行削除
  1. 0 7
      Source/cmDependsJavaLexer.h
  2. 2 1
      Source/cmDependsJavaLexer.in.l

+ 0 - 7
Source/cmDependsJavaLexer.h

@@ -2,10 +2,6 @@
 #define cmDependsJava_yyHEADER_H 1
 #define cmDependsJava_yyIN_HEADER 1
 
-#line 6 "cmDependsJavaLexer.h"
-
-#line 8 "cmDependsJavaLexer.h"
-
 #define  YY_INT_ALIGNED short int
 
 /* A lexical scanner generated by flex */
@@ -310,9 +306,6 @@ extern int cmDependsJava_yylex (yyscan_t yyscanner);
 #undef YY_DECL_IS_OURS
 #undef YY_DECL
 #endif
-#line 214 "cmDependsJavaLexer.in.l"
-
 
-#line 327 "cmDependsJavaLexer.h"
 #undef cmDependsJava_yyIN_HEADER
 #endif /* cmDependsJava_yyHEADER_H */

+ 2 - 1
Source/cmDependsJavaLexer.in.l

@@ -23,7 +23,7 @@ Run flex like this:
 
   flex --prefix=cmDependsJava_yy --header-file=cmDependsJavaLexer.h -ocmDependsJavaLexer.cxx cmDependsJavaLexer.in.l
 
-Modify cmDependsJavaLexer.c:
+Modify cmDependsJavaLexer.cxx:
   - remove TABs
   - remove "yyscanner" argument from these methods:
       yy_fatal_error, yyalloc, yyrealloc, yyfree
@@ -33,6 +33,7 @@ Modify cmDependsJavaLexer.h:
   - remove TABs
   - remove the yy_init_globals function
   - remove the block that includes unistd.h
+  - remove #line directives (avoids bogus warning on old Sun)
 
 */