From: Paul Floyd Date: Wed, 8 Apr 2026 06:30:45 +0000 (+0200) Subject: FreeBSD regtest: rename a C variable X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=HEAD;p=thirdparty%2Fvalgrind.git FreeBSD regtest: rename a C variable One FreeBSD test was using a varaible called 'nullptr'. clang 22 now complains about that because it is a reserved keyword in C 23. Rename it to 'nullpointer'. --- diff --git a/memcheck/tests/freebsd/static_allocs.c b/memcheck/tests/freebsd/static_allocs.c index a5224cbaf..9bc92c1a5 100644 --- a/memcheck/tests/freebsd/static_allocs.c +++ b/memcheck/tests/freebsd/static_allocs.c @@ -25,13 +25,13 @@ void *reallocf(void *ptr, size_t size) { return ptr; } -volatile char* nullptr = NULL; +volatile char* nullpointer = NULL; int main (void) { char *p; - p = realloc((void*)nullptr, 10); + p = realloc((void*)nullpointer, 10); p = calloc(10, 16); (void)reallocf(p, 0); return 0;