fix: resolve cppcheck warnings in new test files

- Remove unused ConsumerCtx struct in test_stress.c
- Add const qualifiers to variables only checked for NULL
  in test_metadata.c, test_protocol.c, test_robustness.c
This commit is contained in:
2026-07-19 19:29:31 +02:00
parent 44d0f99de9
commit 66d994f01b
4 changed files with 13 additions and 22 deletions
-9
View File
@@ -19,15 +19,6 @@ typedef struct {
int producer_id;
} ProducerCtx;
typedef struct {
Queue* q;
mtx_t* mutex;
cnd_t* cnd_empty;
cnd_t* cnd_full;
volatile bool* done;
int sum;
} ConsumerCtx;
typedef struct {
Queue* q;
mtx_t* mutex;