mirror of https://github.com/YosysHQ/yosys.git
Fixed clang -Wdeprecated-register warnings
This commit is contained in:
parent
a1be4816d6
commit
7188542155
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue