Ro5bert / avra

Assembler for the Atmel AVR microcontroller family
GNU General Public License v2.0
153 stars 39 forks source link

Allow warning suppression for include def files #42

Open UtkarshVerma opened 2 years ago

UtkarshVerma commented 2 years ago

If I include the m328pdef.inc file in my source, and compile with avra. I get the following warnings.

AVRA: advanced AVR macro assembler (version 1.4.2)
Pass 1...
Pass 2...
m328pdef.inc(44) : PRAGMA PARTINC directive currently ignored
m328pdef.inc(48) : PRAGMA AVRPART directive currently ignored
m328pdef.inc(53) : PRAGMA AVRPART directive currently ignored
m328pdef.inc(898) : PRAGMA AVRPART directive currently ignored
m328pdef.inc(899) : PRAGMA AVRPART directive currently ignored
m328pdef.inc(900) : PRAGMA AVRPART directive currently ignored
m328pdef.inc(901) : PRAGMA AVRPART directive currently ignored
done

Assembly complete with no errors.
Segment usage:
   Code      :       116 words (232 bytes)
   Data      :         0 bytes
   EEPROM    :         0 bytes

As a developer, the include def file is not something I maintain and hence getting a warning for it on compilation seems unnecessary. It would be nice to have some way to suppress these warnings.