pgbackrest.git / summary / log / commit / refs

commit    9639a2c15fa3e3bb5cffc6bf6ac4eb82f85aef49
Author:   David Steele <david@pgmasters.net>
Date:     Tue May 12 17:30:46 2020 +0000

    Add missing do...while loop to harness macro.


test/src/common/harnessDebug.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/src/common/harnessDebug.h b/test/src/common/harnessDebug.h index 0b7b81963..767865785 100644 --- a/test/src/common/harnessDebug.h +++ b/test/src/common/harnessDebug.h @@ -56,8 +56,12 @@ C Debug Harness while (0) #define FUNCTION_HARNESS_RESULT(typeMacroPrefix, result) \ - STACK_TRACE_POP(false); \ - return result \ + do \ + { \ + STACK_TRACE_POP(false); \ + return result; \ + } \ + while (0) #define FUNCTION_HARNESS_RESULT_VOID() \ STACK_TRACE_POP(false); [parent: b8a5c3ac6fe5]