Skip to content

test: shut up coverity complaints about side effects

Peter Hutterer requested to merge whot/pipewire:wip/coverity-fixes into master

CID 1457494: Incorrect expression (ASSERT_SIDE_EFFECT) Assignment "ai = (void *)((uint8_t *)pod + 16)" has a side effect. This code will work differently in a non-debug build. 550 spa_assert((ai = SPA_POD_ARRAY_VALUES(pod)) != NULL);

Patch generated with coccinelle snippet

	@@
	expression E1, E2;
	@@
	- spa_assert((E1 = E2) != NULL);
	+ E1 = E2;
	+ spa_assert(E1 != NULL);

And run again for == NULL

Edited by Peter Hutterer

Merge request reports