diff --git a/backends/bmv2/common/control.h b/backends/bmv2/common/control.h index 87c18a4ea4e..4560fdc3dd6 100644 --- a/backends/bmv2/common/control.h +++ b/backends/bmv2/common/control.h @@ -144,7 +144,7 @@ class ControlConverter : public Inspector { auto propertyName = Standard::ActionProfileTraits::propertyName(); auto impl = table->properties->getProperty(propertyName); - bool simple = handleTableImplementation(impl, key, result, action_profiles, selector_check); + (void) handleTableImplementation(impl, key, result, action_profiles, selector_check); unsigned size = 0; auto sz = table->properties->getProperty("size"); @@ -378,14 +378,6 @@ class ControlConverter : public Inspector { auto defact = table->properties->getProperty(IR::TableProperties::defaultActionPropertyName); if (defact != nullptr) { - if (!simple) { - ::P4::warning( - ErrorType::WARN_UNSUPPORTED, - "Target does not support default_action for %1% (due to action profiles)", - table); - return result; - } - if (!defact->value->is()) { ::P4::error(ErrorType::ERR_EXPECTED, "%1%: expected an action", defact); return result;