Skip to content

Commit 5468efd

Browse files
authored
Merge pull request #708 from LLNL/bugfix/white238/nan_gtest
Add warning flag to silence warning promoted to error in IntelLLVM
2 parents 1b076eb + 0e2a9d8 commit 5468efd

5 files changed

+17
-0
lines changed

RELEASE-NOTES.md

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ The project release numbers follow [Semantic Versioning](http://semver.org/spec/
2424
- Guard HIP C smoketest against projects that don't enable C as a language in their projects.
2525
- Changes benchmark custom target `run_benchmarks` to exclusively run benchmarks (not other general tests).
2626
- Fix HIP smoketests to fail on HIP errors.
27+
- Add `-Wno-tautological-compare` to GoogleTest/Mock/Benchmark for IntelLLVM compilers to silence
28+
warning.
2729

2830
## [Version 0.6.2] - Release date 2024-03-15
2931

thirdparty_builtin/googletest/googletest/cmake/internal_utils.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ macro(config_compiler_and_linker)
134134
set(cxx_no_exception_flags "+noeh -DGTEST_HAS_EXCEPTIONS=0")
135135
# RTTI can not be disabled in HP aCC compiler.
136136
set(cxx_no_rtti_flags "")
137+
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "IntelLLVM")
138+
set(cxx_base_flags "-Wno-tautological-compare")
137139
endif()
138140

139141
# The pthreads library is available and allowed?
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/thirdparty_builtin/googletest/googletest/cmake/internal_utils.cmake b/thirdparty_builtin/googletest/googletest/cmake/internal_utils.cmake
2+
index 6ddb794..0037804 100644
3+
--- a/thirdparty_builtin/googletest/googletest/cmake/internal_utils.cmake
4+
+++ b/thirdparty_builtin/googletest/googletest/cmake/internal_utils.cmake
5+
@@ -134,6 +134,8 @@ macro(config_compiler_and_linker)
6+
set(cxx_no_exception_flags "+noeh -DGTEST_HAS_EXCEPTIONS=0")
7+
# RTTI can not be disabled in HP aCC compiler.
8+
set(cxx_no_rtti_flags "")
9+
+ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "IntelLLVM")
10+
+ set(cxx_base_flags "-Wno-tautological-compare")
11+
endif()
12+
13+
# The pthreads library is available and allowed?

0 commit comments

Comments
 (0)