From a1ce1cb64d3cb0064eaffa85bc0945688ce90174 Mon Sep 17 00:00:00 2001 From: Ali Omar Abdelazim Mohammed <mohammal@uan01-nmn.local> Date: Fri, 27 Aug 2021 03:11:06 -0500 Subject: [PATCH] a couple of asserts to silience unsued parameters --- maestro/pool.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/maestro/pool.c b/maestro/pool.c index da0641c1..d1fbeb57 100644 --- a/maestro/pool.c +++ b/maestro/pool.c @@ -1272,6 +1272,7 @@ mstro_status mstro_pool__demand_async_no_pm(mstro_cdo cdo, mstro_cdo_state new_state) { + assert(MSTRO_CDO_STATE_DEMANDED == new_state); // increase waiters by one return mstro_pool_cdo_waiters(cdo, 1); } @@ -1706,6 +1707,8 @@ mstro_pool__demand_async_with_pm(mstro_cdo cdo, mstro_cdo_state new_state) { mstro_status status = MSTRO_UNIMPL; + assert(MSTRO_CDO_STATE_DEMANDED == new_state); + /* tell pool manager it's urgent now */ /* that will eventually kick off a transport occuring and filling in * a CDO OFFER that can be used to satisfy this demand. We'll be -- GitLab