Skip to content

Commit

Permalink
Use #ifdef NO_VALGRIND
Browse files Browse the repository at this point in the history
Using simply #if will fail when NO_VALGRIND is undefined.

Signed-off-by: Marc-André Lureau <[email protected]>
  • Loading branch information
elmarco authored and dgibson committed Feb 27, 2023
1 parent 71c19f2 commit 4182182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <unistd.h>
#include <fcntl.h>

#if NO_VALGRIND
#ifdef NO_VALGRIND
static inline void VALGRIND_MAKE_MEM_UNDEFINED(void *p, size_t len)
{
}
Expand Down

0 comments on commit 4182182

Please sign in to comment.