From 297ba36772d48bb4ced2b9d4852388378d2568e7 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 15 Feb 2005 14:36:19 +0000 Subject: (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. --- ld/ldlex.l | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ld/ldlex.l') diff --git a/ld/ldlex.l b/ld/ldlex.l index 70059e1..ea6fa99 100644 --- a/ld/ldlex.l +++ b/ld/ldlex.l @@ -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]; -- cgit v1.1