Fixed clang -Wdeprecated-register warnings
authorClifford Wolf <clifford@clifford.at>
Sun, 20 Apr 2014 12:28:23 +0000 (14:28 +0200)
committerClifford Wolf <clifford@clifford.at>
Sun, 20 Apr 2014 12:28:23 +0000 (14:28 +0200)
frontends/ilang/lexer.l
frontends/verilog/lexer.l

index 000919275a93341130fcff04d7ce6d6be97a4df0..6557f98ab105238c4d893e0ae721100464c6915b 100644 (file)
  */
 
 %{
+
+#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
index e3e5e4ab2b47a58b3915c1d8c9815cd9d2e0fb42..226a26709569cf89e8b3785bbca1027186f2ad6d 100644 (file)
 
 %{
 
+#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"