From d881ef95bfeb7f8ed56047cb0da938be5c9267e8 Mon Sep 17 00:00:00 2001 From: Henry Cox <68852529+henry2cox@users.noreply.github.com> Date: Thu, 19 Dec 2024 11:14:51 -0500 Subject: [PATCH] Don't emit gcov warning in tool that doesn't use gcov. (#359) Signed-off-by: Henry Cox --- lib/lcovutil.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/lcovutil.pm b/lib/lcovutil.pm index 7d96303..641fb0d 100644 --- a/lib/lcovutil.pm +++ b/lib/lcovutil.pm @@ -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';