From b9bc0a00356db42a413fcde64ce63f274f9331e7 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 17 Jul 2020 10:33:14 +0200 Subject: [PATCH] src/testing.h: Support const pointers in CHECK_NOT_NULL(). --- src/testing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testing.h b/src/testing.h index 8299d8907..c1badcc8e 100644 --- a/src/testing.h +++ b/src/testing.h @@ -136,7 +136,7 @@ static int check_count__; #define CHECK_NOT_NULL(expr) \ do { \ - void *ptr_; \ + void const *ptr_; \ ptr_ = (expr); \ OK1(ptr_ != NULL, #expr); \ } while (0) -- 2.47.3