3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-17 11:26:18 +00:00

disable warning for intentional use of deprecated function (to assert the feature isn't used any more)

This commit is contained in:
N. Engelhardt 2025-06-06 16:41:25 +02:00
parent f22248f056
commit 3fe31294d6

View file

@ -2409,7 +2409,14 @@ void RTLIL::Module::check()
// assertion check below to make sure that there are no
// cases where a cell has a blackbox attribute since
// that is deprecated
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
log_assert(!it.second->get_blackbox_attribute());
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
}
}