Skip to content

Commit d881ef9

Browse files
authored
Don't emit gcov warning in tool that doesn't use gcov. (#359)
Signed-off-by: Henry Cox <[email protected]>
1 parent 193cc76 commit d881ef9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/lcovutil.pm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7857,6 +7857,8 @@ sub _mergeParallelChunk
78577857

78587858
sub _generate_end_line_message
78597859
{
7860+
# don't generate gcov warnings for tools that don't use gcov
7861+
return if grep({ /(llvm|perl|py|xml)2lcov/ } $lcovutil::tool_name);
78607862
if (lcovutil::warn_once('compiler_version', 1)) {
78617863
my $msg =
78627864
'Function begin/end line exclusions not supported with this version of GCC/gcov; require gcc/9 or newer';

0 commit comments

Comments
 (0)