test: add assert()s to fix analyzer warnings

Reduce the analyzer spam a bit by adding some extra asserts.
Since it's test code, we can't have enough of them anyways ;-)

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-05-07 15:08:48 +02:00
parent 0717a837f7
commit 67716013b5
6 changed files with 34 additions and 5 deletions

View File

@@ -56,6 +56,7 @@ fake_init_sprite(DeviceIntPtr dev)
sprite->spriteTraceSize = 10;
sprite->spriteTrace = calloc(sprite->spriteTraceSize, sizeof(WindowPtr));
assert(sprite->spriteTrace);
sprite->spriteTraceGood = 1;
sprite->spriteTrace[0] = &root;
sprite->hot.x = SPRITE_X;