Fixed clang -Wdeprecated-register warnings

This commit is contained in:
Clifford Wolf 2014-04-20 14:28:23 +02:00
parent a1be4816d6
commit 7188542155
2 changed files with 12 additions and 0 deletions

View File

@ -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 "kernel/rtlil.h"
#include "parser.tab.h" #include "parser.tab.h"
void update_autoidx(const char *p); void update_autoidx(const char *p);
%} %}
%option yylineno %option yylineno

View File

@ -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 "kernel/log.h"
#include "verilog_frontend.h" #include "verilog_frontend.h"
#include "frontends/ast/ast.h" #include "frontends/ast/ast.h"