diff options
author | Gonzalo Brito Gadeschi <gonzalob@nvidia.com> | 2022-12-28 14:00:31 (GMT) |
---|---|---|
committer | Gonzalo Brito Gadeschi <gonzalob@nvidia.com> | 2022-12-28 14:00:31 (GMT) |
commit | ab669cad0eea4cbe59faf9a421ab01db30ebc13c (patch) | |
tree | c469840b482fbe8f5ab746f4ee401a687b65dd8f | |
parent | 71140c3ca7a87bb1b5b9c9f1500fea8858cce344 (diff) | |
download | googletest-ab669cad0eea4cbe59faf9a421ab01db30ebc13c.zip googletest-ab669cad0eea4cbe59faf9a421ab01db30ebc13c.tar.gz googletest-ab669cad0eea4cbe59faf9a421ab01db30ebc13c.tar.bz2 |
Fix warnings with nvc++ as the compiler
Closes #3849.
-rw-r--r-- | googletest/include/gtest/internal/gtest-port.h | 2 |
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 01bfd1f..77549e8 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 |