From d3e75d120c8fa01a57b058889fecb240234ae8a8 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 30 Mar 2021 08:42:17 +0200 Subject: [PATCH] regress: Fix test-cpp.c test tool for systems without typeof() --- bacula/src/tools/test-cpp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bacula/src/tools/test-cpp.c b/bacula/src/tools/test-cpp.c index 49dfaba88..d46e71e2c 100644 --- a/bacula/src/tools/test-cpp.c +++ b/bacula/src/tools/test-cpp.c @@ -26,13 +26,13 @@ #if __cplusplus >= 201103L # define bdelete_and_null_auto(a) do{if(a){auto b__ = a; (a)=NULL; delete b__;}} while(0) #else -# define do{ok(1, "auto not available") +# define do{ok(1, "auto not available");} while (0) #endif # ifdef HAVE_TYPEOF # define bdelete_and_null_typeof(a) do{if(a){typeof(a) b__ = a; (a)=NULL; delete b__;}} while(0) # else -# define ok(1, "typeof not available") +# define do{ok(1, "typeof not available");} while (0) #endif class obj -- 2.47.3