From: Eric Bollengier Date: Tue, 30 Mar 2021 06:42:17 +0000 (+0200) Subject: regress: Fix test-cpp.c test tool for systems without typeof() X-Git-Tag: Release-11.0.3~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3e75d120c8fa01a57b058889fecb240234ae8a8;p=thirdparty%2Fbacula.git regress: Fix test-cpp.c test tool for systems without typeof() --- 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