summaryrefslogtreecommitdiff
path: root/frontends/verilog
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/verilog
parenta1be4816d602548f4454242dc17f8a85ccaa91bd (diff)
Fixed clang -Wdeprecated-register warnings
Diffstat (limited to 'frontends/verilog')
-rw-r--r--frontends/verilog/lexer.l5
1 files changed, 5 insertions, 0 deletions
diff --git a/frontends/verilog/lexer.l b/frontends/verilog/lexer.l
index e3e5e4ab..226a2670 100644
--- a/frontends/verilog/lexer.l
+++ b/frontends/verilog/lexer.l
@@ -34,6 +34,11 @@
%{
+#ifdef __clang__
+// bison generates code using the 'register' storage class specifier
+#pragma clang diagnostic ignored "-Wdeprecated-register"
+#endif
+
#include "kernel/log.h"
#include "verilog_frontend.h"
#include "frontends/ast/ast.h"