Persist test: Silence warning logs

This commit is contained in:
Roger A. Light 2026-01-06 13:31:05 +00:00
parent 7e5b7d02ca
commit 7a6af8e405
2 changed files with 18 additions and 0 deletions

View file

@ -20,6 +20,13 @@ uint32_t last_identifier;
struct mosquitto_db db;
static void dummy_vprintf(const char *fmt, va_list va)
{
UNUSED(fmt);
UNUSED(va);
}
static void test_cleanup(void)
{
struct mosquitto *ctxt, *ctxt_tmp;
@ -947,6 +954,8 @@ int main(int argc, char *argv[])
UNUSED(argc);
UNUSED(argv);
libcommon_vprintf = dummy_vprintf;
if(CU_initialize_registry() != CUE_SUCCESS){
printf("Error initializing CUnit registry.\n");
return 1;

View file

@ -17,6 +17,13 @@ int last_qos;
struct mosquitto_db db;
static void dummy_vprintf(const char *fmt, va_list va)
{
UNUSED(fmt);
UNUSED(va);
}
static void test_cleanup(void)
{
struct mosquitto *ctxt, *ctxt_tmp;
@ -418,6 +425,8 @@ int main(int argc, char *argv[])
UNUSED(argc);
UNUSED(argv);
libcommon_vprintf = dummy_vprintf;
if(CU_initialize_registry() != CUE_SUCCESS){
printf("Error initializing CUnit registry.\n");
return 1;