From 3fe31294d63d610da9f776932fdc56481532bb66 Mon Sep 17 00:00:00 2001 From: "N. Engelhardt" Date: Fri, 6 Jun 2025 16:41:25 +0200 Subject: [PATCH] disable warning for intentional use of deprecated function (to assert the feature isn't used any more) --- kernel/rtlil.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index 1cdc15bb5..189db0648 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -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 } }