Skip to content

Commit 02dab7f

Browse files
committed
Adjust ZEND_UNREACHABLE() exclusion in build/Makefile.gcov
These patterns are implicitly anchored, thus we must manually handle the `default: ZEND_UNREACHABLE();` case. Also add a comment indicating that for future changes.
1 parent 7d5847d commit 02dab7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/Makefile.gcov

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ GCOVR_EXCLUDES = \
2828
'ext/pcre/pcre2lib/.*' \
2929
'ext/uri/uriparser/.*'
3030

31+
# These patterns have implicit ^/$ anchors.
3132
GCOVR_EXCLUDE_LINES_BY_PATTERNS = \
3233
'.*\b(ZEND_PARSE_PARAMETERS_(START|END|NONE)|Z_PARAM_).*' \
33-
'\s*ZEND_UNREACHABLE\(\);\s*'
34+
'\s*(default:\s*)?ZEND_UNREACHABLE\(\);\s*'
3435

3536
lcov: lcov-html
3637

0 commit comments

Comments
 (0)