Fix UNUSED repetition issue in test sources (#475)

This is a follow-up PR to address UNUSED repetition issue (see
https://github.com/valkey-io/valkey/pull/446#discussion_r1593204956) in
different test source files.

Signed-off-by: Karthick Ariyaratnam <karthyuom@gmail.com>
This commit is contained in:
Karthick Ariyaratnam 2024-05-09 17:26:15 -04:00 committed by GitHub
parent fdd023ff82
commit b166980c8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 2 deletions

View File

@ -43,6 +43,8 @@
#define TEST_ASSERT(_c) TEST_ASSERT_MESSAGE("Failed assertion: " #_c, _c)
#ifndef UNUSED
#define UNUSED(x) (void)(x)
#endif
#endif

View File

@ -1,5 +1,4 @@
#include "../kvstore.c"
#undef UNUSED
#include "test_help.h"
uint64_t hashTestCallback(const void *key) {

View File

@ -4,7 +4,6 @@
#include "../config.h"
#include "../util.h"
#undef UNUSED
#include "test_help.h"
int test_string2ll(int argc, char **argv, int flags) {