]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
FreeBSD regtest: rename a C variable master
authorPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 8 Apr 2026 06:30:45 +0000 (08:30 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 8 Apr 2026 06:33:16 +0000 (08:33 +0200)
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'.

memcheck/tests/freebsd/static_allocs.c

index a5224cbaf68c66479a71fa67d78aeff343caec60..9bc92c1a5b4ff1d3eea04d3506444527ac8d38f7 100644 (file)
@@ -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;