Skip to content

Commit 2612cda

Browse files
committedMar 20, 2025·
objdiff-cli report: Skip unknown sections
Regression in v3.0.0-alpha.1 Fixes #171
1 parent bc46e17 commit 2612cda

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎objdiff-cli/src/cmd/report.rs

+3
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ fn report_object(
202202
for ((section_idx, section), section_diff) in
203203
obj.sections.iter().enumerate().zip(&obj_diff.sections)
204204
{
205+
if section.kind == SectionKind::Unknown {
206+
continue;
207+
}
205208
let section_match_percent = section_diff.match_percent.unwrap_or_else(|| {
206209
// Support cases where we don't have a target object,
207210
// assume complete means 100% match

0 commit comments

Comments
 (0)
Please sign in to comment.