You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bin/geninfo
+12-15Lines changed: 12 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1726,7 +1726,6 @@ sub process_dafile($$$$)
1726
1726
}
1727
1727
1728
1728
my$traceFile = TraceFile->new();
1729
-
my$warnedUnexecuted;
1730
1729
# Traverse the list of generated .gcov files and combine them into a
1731
1730
# single .info file
1732
1731
foreach$gcov_file (@gcov_list) {
@@ -1894,12 +1893,16 @@ sub process_dafile($$$$)
1894
1893
);
1895
1894
if ($lcovutil::opt_adjust_unexecuted_blocks) {
1896
1895
$hit = 0;
1897
-
} else {
1896
+
} elsif (
1897
+
lcovutil::warn_once(
1898
+
"unexecuted block",
1899
+
$ERROR_INCONSISTENT_DATA
1900
+
)
1901
+
) {
1898
1902
lcovutil::ignorable_warning(
1899
1903
$ERROR_INCONSISTENT_DATA,
1900
1904
"$source_filename:$line_number: unexecuted block on non-branch line with non-zero hit count. Use \"geninfo --rc geninfo_unexecuted_blocks=1 to set count to zero."
1901
-
) unless$warnedUnexecuted;
1902
-
$warnedUnexecuted = 1;
1905
+
);
1903
1906
}
1904
1907
}
1905
1908
}
@@ -2536,7 +2539,6 @@ sub intermediate_json_to_info($)
0 commit comments