summaryrefslogtreecommitdiff
path: root/frontends/ilang/lexer.l
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-04-20 14:28:23 +0200
committerClifford Wolf <clifford@clifford.at>2014-04-20 14:28:23 +0200
commit7188542155902bcf3880d482d472e91331f8a3ed (patch)
treead91b68ddec526ed7a32dc2d0127b5eca28664b0 /frontends/ilang/lexer.l
parenta1be4816d602548f4454242dc17f8a85ccaa91bd (diff)
Fixed clang -Wdeprecated-register warnings
Diffstat (limited to 'frontends/ilang/lexer.l')
-rw-r--r--frontends/ilang/lexer.l7
1 files changed, 7 insertions, 0 deletions
diff --git a/frontends/ilang/lexer.l b/frontends/ilang/lexer.l
index 00091927..6557f98a 100644
--- a/frontends/ilang/lexer.l
+++ b/frontends/ilang/lexer.l
@@ -23,9 +23,16 @@
*/
%{
+
+#ifdef __clang__
+// bison generates code using the 'register' storage class specifier
+#pragma clang diagnostic ignored "-Wdeprecated-register"
+#endif
+
#include "kernel/rtlil.h"
#include "parser.tab.h"
void update_autoidx(const char *p);
+
%}
%option yylineno