Browse Source

COMP: Defining YY_NO_INPUT to remove compilation of unused yyinput function. It was producing a warning about unreachable code.

Brad King 20 years ago
parent
commit
28bb8e04c0
2 changed files with 2 additions and 0 deletions
  1. 1 0
      Source/cmListFileLexer.c
  2. 1 0
      Source/cmListFileLexer.in.l

+ 1 - 0
Source/cmListFileLexer.c

@@ -508,6 +508,7 @@ Modify cmListFileLexer.c:
 
 /* Disable features we do not need. */
 #define YY_NEVER_INTERACTIVE 1
+#define YY_NO_INPUT 1
 #define YY_NO_UNPUT 1
 #define YY_NO_UNISTD_H 1
 #define ECHO

+ 1 - 0
Source/cmListFileLexer.in.l

@@ -34,6 +34,7 @@ Modify cmListFileLexer.c:
 
 /* Disable features we do not need. */
 #define YY_NEVER_INTERACTIVE 1
+#define YY_NO_INPUT 1
 #define YY_NO_UNPUT 1
 #define YY_NO_UNISTD_H 1
 #define ECHO