From bca75a08e2e17c4a01941bbdd7ff4789ef45219b Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Wed, 29 Mar 2023 09:59:10 -0400 Subject: [PATCH] COMP: Applied gtest PR 4025 to fix build with old clang From: https://github.com/google/googletest/pull/4025 --- .../googletest/include/gtest/internal/gtest-port.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/ThirdParty/GoogleTest/src/itkgoogletest/googletest/include/gtest/internal/gtest-port.h b/Modules/ThirdParty/GoogleTest/src/itkgoogletest/googletest/include/gtest/internal/gtest-port.h index 0003d276589..1bce52d6d4b 100644 --- a/Modules/ThirdParty/GoogleTest/src/itkgoogletest/googletest/include/gtest/internal/gtest-port.h +++ b/Modules/ThirdParty/GoogleTest/src/itkgoogletest/googletest/include/gtest/internal/gtest-port.h @@ -770,6 +770,8 @@ typedef struct _RTL_CRITICAL_SECTION GTEST_CRITICAL_SECTION; // Ask the compiler not to perform tail call optimization inside // the marked function. #define GTEST_NO_TAIL_CALL_ __attribute__((disable_tail_calls)) +#else +#define GTEST_NO_TAIL_CALL_ #endif #elif __GNUC__ #define GTEST_NO_TAIL_CALL_ \