suppress spurious "large alignment" warning when the combined alignment is not larger than any of the explictly requested ones

This commit is contained in:
bbbradsmith
2023-02-21 06:48:46 -05:00
parent d0f17ba602
commit 13f1d37403
3 changed files with 9 additions and 8 deletions

View File

@@ -306,7 +306,7 @@ void SegAlign (unsigned long Alignment, int FillVal)
ActiveSeg->Align = CombinedAlignment;
/* Output a warning for larger alignments if not suppressed */
if (CombinedAlignment >= LARGE_ALIGNMENT && !LargeAlignment) {
if (CombinedAlignment >= LARGE_ALIGNMENT && CombinedAlignment > ActiveSeg->Align && CombinedAlignment > Alignment && !LargeAlignment) {
Warning (0, "Combined alignment is suspiciously large (%lu)",
CombinedAlignment);
}