Emit warnings for wasted bytes when aligning

This commit is contained in:
Colin Leroy-Mira
2025-10-19 11:14:45 +02:00
parent 84bcd53c45
commit 28442e60b8
4 changed files with 10 additions and 4 deletions

View File

@@ -313,7 +313,9 @@ void SegAlign (unsigned long Alignment, int FillVal)
/* Calculate the number of fill bytes */
Count = AlignCount (ActiveSeg->PC, Alignment);
if (Count != 0) {
Warning(0, "Wasting %lu bytes for alignment", Count);
}
}