From 291de18504accd505a54120c7ad43cc72e3b6b5d Mon Sep 17 00:00:00 2001 From: Henry Cox Date: Tue, 17 Dec 2024 15:06:39 -0500 Subject: [PATCH] Don't emit gcov warning in tool that doesn't use gcov. 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';