Skip to content

Commit

Permalink
Don't emit gcov warning in tool that doesn't use gcov. (#359)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Cox <[email protected]>
  • Loading branch information
henry2cox authored Dec 19, 2024
1 parent 193cc76 commit d881ef9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/lcovutil.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7857,6 +7857,8 @@ sub _mergeParallelChunk

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

0 comments on commit d881ef9

Please sign in to comment.