Open mirao opened 1 year ago
It sounds like you want "OPT u" added so you can turn the warnings on and off where you want them.
Not sure if "OPT u" could make the process easier.
I just need to skip check of unused labels from included asm files (external labels) when using -u
.
Now I'm getting many warnings and some of them are useless (external labels, I can't do anything with such warnings) and only some useful (internal labels that are not used. Typically I forgot to remove them from my application and it's good that MADS reports it).
I was thinking you would put OPT u- at the top of the include file and OPT u+ at the bottom. This is how I use OPT l-/+ to keep those same files out of the .lst file.
I see. It could work.
I use the handy option
-u
so that I don't keep useless labels in my code But it doesn't seem to be working as expected when including labels from external ASM file.Let's have a shared library for a work with keyboard
keys.asm:
and an application using only
KEY_SPACE
,KEY_F
andKEY_H
from itgtia_gr0.asm:
There is also another application using different keys:
KEY_M
,KEY_U
,KEY_D
.Now if I assemble
gtia_gr0.asm
, I'm getting warnings :x:Or is there a way how to "Import only some labels and don't notice others" so that I won't get those warnings? Or another solution? I don't want to separate keys into extra libraries. I just want to share some keys from one library.
Used SW: mads 2.1.5, Ubuntu 22.10