1
0
mirror of synced 2026-04-24 19:40:49 +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
}
}