Fix warnings with nvc++ as the compiler

Closes #3849.
This commit is contained in:
Gonzalo Brito Gadeschi 2022-12-28 06:00:31 -08:00
parent 71140c3ca7
commit ab669cad0e

View File

@ -794,7 +794,7 @@ 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))
#elif __GNUC__
#elif __GNUC__ && !defined(__NVCOMPILER)
#define GTEST_NO_TAIL_CALL_ \
__attribute__((optimize("no-optimize-sibling-calls")))
#else