mac: build warning about unused result

Changelog-None
This commit is contained in:
Dusty Daemon 2024-11-11 10:57:43 +10:30 committed by Rusty Russell
parent 48f50a26bf
commit 60e6f7eb48
2 changed files with 2 additions and 2 deletions

View File

@ -123,6 +123,6 @@ void memtaint(void *data, size_t len)
memcpy(p, tainter, len);
#if HAVE_VALGRIND_MEMCHECK_H
VALGRIND_MAKE_MEM_UNDEFINED(data, len);
(void)VALGRIND_MAKE_MEM_UNDEFINED(data, len);
#endif
}

View File

@ -244,7 +244,7 @@ void memswap(void *a, void *b, size_t n);
#include <valgrind/memcheck.h>
static inline void *memcheck_(const void *data, size_t len)
{
VALGRIND_CHECK_MEM_IS_DEFINED(data, len);
(void)VALGRIND_CHECK_MEM_IS_DEFINED(data, len);
return (void *)data;
}
#else