fix: resolve cppcheck warnings in new test files
CI / lint (push) Successful in 8s
CI / lint (pull_request) Successful in 8s
CI / build-and-test (push) Successful in 53s
CI / sanitizers (address) (push) Successful in 14s
CI / coverage (push) Failing after 7s
CI / valgrind (push) Failing after 9s
CI / build-and-test (pull_request) Successful in 53s
CI / sanitizers (address) (pull_request) Successful in 14s
CI / coverage (pull_request) Failing after 7s
CI / valgrind (pull_request) Failing after 10s

- 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 c06a065a6a
commit 958e0b6c00
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;