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
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user