[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/5] Advise flex not to generate the input function
From: |
Justus Winter |
Subject: |
[PATCH 1/5] Advise flex not to generate the input function |
Date: |
Mon, 2 Dec 2013 10:58:15 +0100 |
This avoids a warning about input being unused.
* lexxer.l: Define YY_NO_INPUT.
---
lexxer.l | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lexxer.l b/lexxer.l
index 6686b55..5f2f61e 100644
--- a/lexxer.l
+++ b/lexxer.l
@@ -50,6 +50,9 @@ FileName ({QString}|{AString})
#include "lexxer.h"
#include "cpu.h"
+/* We do not need the input function. */
+#define YY_NO_INPUT
+
#define stringize(x) #x
#ifdef LDEBUG
--
1.7.10.4
- [PATCH 1/5] Advise flex not to generate the input function,
Justus Winter <=
- [PATCH 2/5] Avoid a compiler warning in WriteDefines, Justus Winter, 2013/12/02
- [PATCH 3/5] Clean up generated sources, Justus Winter, 2013/12/02
- [PATCH 4/5] Move the generation of x_server_routine function into a function, Justus Winter, 2013/12/02
- [PATCH 5/5] Generate a x_server_routine in the sheader so it can be inlined, Justus Winter, 2013/12/02
- Re: [PATCH 1/5] Advise flex not to generate the input function, Samuel Thibault, 2013/12/02