Skip to content

Commit 48161cc

Browse files
sergeyklayStableCoder
authored andcommitted
Setting ininial value for EXCLUDE_REGEX variable
This patch aims to fix CMake warnings like these: ``` CMake Warning (dev) at external/cmake-scripts/code-coverage.cmake:498 (set): uninitialized variable 'EXCLUDE_REGEX' Call Stack (most recent call first): CMakeLists.txt:157 (add_code_coverage_all_targets) This warning is for project developers. Use -Wno-dev to suppress it. ```
1 parent e9fd1f9 commit 48161cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

code-coverage.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ function(add_code_coverage_all_targets)
515515
add_custom_target(ccov-all-processing COMMAND ;)
516516

517517
# Exclusion regex string creation
518+
set(EXCLUDE_REGEX)
518519
foreach(EXCLUDE_ITEM ${add_code_coverage_all_targets_EXCLUDE})
519520
set(EXCLUDE_REGEX ${EXCLUDE_REGEX} --remove ${COVERAGE_INFO}
520521
'${EXCLUDE_ITEM}')

0 commit comments

Comments
 (0)