Add --warn-align-waste option to ca65, ld65, cl65

This commit is contained in:
Colin Leroy-Mira
2025-10-26 16:06:08 +01:00
parent 28442e60b8
commit 2220c6ec8d
12 changed files with 65 additions and 6 deletions

View File

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