TensorVolumePatchOp: Suppress Wmaybe-uninitialized caused by unreachable code

This commit is contained in:
Charles Schlosser 2024-08-23 01:55:12 +00:00
parent 2bf8fe1489
commit 231308f690

View File

@ -274,8 +274,10 @@ struct TensorEvaluator<const TensorVolumePatchOp<Planes, Rows, Cols, ArgType>, D
m_colPaddingLeft = dx / 2; m_colPaddingLeft = dx / 2;
break; break;
} }
default: default: {
eigen_assert(false && "unexpected padding"); eigen_assert(false && "unexpected padding");
return;
}
} }
} }
eigen_assert(m_outputRows > 0); eigen_assert(m_outputRows > 0);