mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-18 11:58:32 +00:00
disable warning for intentional use of deprecated function (to assert the feature isn't used any more)
This commit is contained in:
parent
f22248f056
commit
3fe31294d6
1 changed files with 7 additions and 0 deletions
|
@ -2409,7 +2409,14 @@ void RTLIL::Module::check()
|
||||||
// assertion check below to make sure that there are no
|
// assertion check below to make sure that there are no
|
||||||
// cases where a cell has a blackbox attribute since
|
// cases where a cell has a blackbox attribute since
|
||||||
// that is deprecated
|
// that is deprecated
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
#endif
|
||||||
log_assert(!it.second->get_blackbox_attribute());
|
log_assert(!it.second->get_blackbox_attribute());
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue