3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-09 15:43:25 +00:00

verilog: do not warn for attributes on null statements

This commit is contained in:
Eddie Hung 2020-05-14 10:46:40 -07:00
parent 29d84339bf
commit 1c117ac023
2 changed files with 4 additions and 6 deletions

View file

@ -2230,7 +2230,6 @@ behavioral_stmt:
non_opt_delay behavioral_stmt |
attr simple_behavioral_stmt ';' |
attr ';' {
log_file_warning(current_filename, get_line_num(), "Attribute(s) attached to null statement. Ignoring.\n");
free_attr($1);
} |
attr hierarchical_id {
@ -2534,7 +2533,6 @@ module_gen_body:
gen_stmt_or_module_body_stmt:
gen_stmt | module_body_stmt |
attr ';' {
log_file_warning(current_filename, get_line_num(), "Attribute(s) attached to null statement. Ignoring.\n");
free_attr($1);
};