summaryrefslogtreecommitdiff
path: root/ld/ldlex.l
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-02-15 14:36:19 +0000
committerNick Clifton <nickc@redhat.com>2005-02-15 14:36:19 +0000
commitc0cb87b2d74d52a53c1fa0bb4fff1ddb710e890b (patch)
treea741ea7937333a7527ab0370db9f248b85804d88 /ld/ldlex.l
parent4a59aeb4c48be07cba5ed5212f98a003cc2f637a (diff)
downloadbinutils-redhat-c0cb87b2d74d52a53c1fa0bb4fff1ddb710e890b.tar.gz
(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.
Diffstat (limited to 'ld/ldlex.l')
-rw-r--r--ld/ldlex.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/ld/ldlex.l b/ld/ldlex.l
index 70059e1408..ea6fa9948a 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];