(YY_NO_UNPUT): Define so that the yy_unput function is not declared. It is not
authorNick Clifton <nickc@redhat.com>
Tue, 15 Feb 2005 14:36:19 +0000 (14:36 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 15 Feb 2005 14:36:19 +0000 (14:36 +0000)
used and its presence causes a compile time warning.

ld/ChangeLog
ld/ldlex.l

index d00724f93f5ddc4fc09653606cfaee1842043305..e84e3d51db8a1a6241e078085f9fdc5629c00a61 100644 (file)
@@ -1,3 +1,9 @@
+2005-02-15  Nick Clifton  <nickc@redhat.com>
+
+       * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
+       not declared.  It is not used and its presence causes a compile
+       time warning.
+       
 2005-02-11  Zack Weinberg  <zack@codesourcery.com>
 
        * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
index 70059e140861c4bea8ffe551fe5344874b77d388..ea6fa9948ac81ef858469a39c1fb8a09a3dbcb76 100644 (file)
@@ -65,6 +65,8 @@ const char *lex_string = NULL;
 #undef YY_INPUT
 #define YY_INPUT(buf,result,max_size) yy_input (buf, &result, max_size)
 
+#define YY_NO_UNPUT
+
 #define MAX_INCLUDE_DEPTH 10
 static YY_BUFFER_STATE include_stack[MAX_INCLUDE_DEPTH];
 static const char *file_name_stack[MAX_INCLUDE_DEPTH];