summaryrefslogtreecommitdiff
path: root/lib/command_lex.l
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2017-04-07 17:40:11 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2017-04-07 19:18:57 +0000
commit073845da5e32aa15b9636bcbe7be994e2bd7f8b4 (patch)
treef8e7ee4fc69e5d6962585b6f4757e13b251bb93c /lib/command_lex.l
parentbca0c46d8f5892711abc2af9c492b735183eb84b (diff)
lib: add #pragma's to ignore flex sign cmp error
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command_lex.l')
-rw-r--r--lib/command_lex.l3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/command_lex.l b/lib/command_lex.l
index deec1757c2..c020d193a1 100644
--- a/lib/command_lex.l
+++ b/lib/command_lex.l
@@ -23,6 +23,9 @@
*/
%{
+/* ignore harmless bug in old versions of flex */
+#pragma GCC diagnostic ignored "-Wsign-compare"
+
#include "command_parse.h"
#define YY_USER_ACTION yylloc->last_column += yyleng;