Skip to content

Commit 1ac63a9

Browse files
committed
Remove warning about GCC/non-debug results
People using this will already know about optimization leading to some lines not existing/running, no need to annoy as well.
1 parent c71e0d0 commit 1ac63a9

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

code-coverage.cmake

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -166,20 +166,6 @@ if(CODE_COVERAGE AND NOT CODE_COVERAGE_ADDED)
166166
# Messages
167167
message(STATUS "Building with lcov Code Coverage Tools")
168168

169-
if(CMAKE_BUILD_TYPE)
170-
string(TOUPPER ${CMAKE_BUILD_TYPE} upper_build_type)
171-
if(NOT ${upper_build_type} STREQUAL "DEBUG")
172-
message(
173-
WARNING
174-
"Code coverage results with an optimized (non-Debug) build may be misleading"
175-
)
176-
endif()
177-
else()
178-
message(
179-
WARNING
180-
"Code coverage results with an optimized (non-Debug) build may be misleading"
181-
)
182-
endif()
183169
if(NOT LCOV_PATH)
184170
message(FATAL_ERROR "lcov not found! Aborting...")
185171
endif()

0 commit comments

Comments
 (0)