summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGonzalo Brito Gadeschi <gonzalob@nvidia.com>2022-12-28 06:00:31 -0800
committerGonzalo Brito Gadeschi <gonzalob@nvidia.com>2022-12-28 06:00:31 -0800
commitab669cad0eea4cbe59faf9a421ab01db30ebc13c (patch)
treec469840b482fbe8f5ab746f4ee401a687b65dd8f
parent71140c3ca7a87bb1b5b9c9f1500fea8858cce344 (diff)
downloadgoogletest-git-ab669cad0eea4cbe59faf9a421ab01db30ebc13c.tar.gz
Fix warnings with nvc++ as the compiler
Closes #3849.
-rw-r--r--googletest/include/gtest/internal/gtest-port.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/include/gtest/internal/gtest-port.h b/googletest/include/gtest/internal/gtest-port.h
index 01bfd1f1..77549e84 100644
--- a/googletest/include/gtest/internal/gtest-port.h
+++ b/googletest/include/gtest/internal/gtest-port.h
@@ -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