On 2/10/2013 5:14 PM, David wrote: > On 02/10/2013 03:46, David Duffy (AVD) wrote: >> I'm using MPLAB and XC8 for a project and would like to enable a warning >> option. Where in MPLAB do I do this? Can it be done? >> >> The warning option I'd like to add is where a function has been called >> without the parentheses. ie. foo instead of foo() > David, > > For functions with no parameters, my MPLABX/XC8 combination correctly > fails compilation for the following: > > unsigned char foo(unsigned char bar) { .. } > .. > foo 0xAA; > > However, for the case with no parameters, I can't seem to get a warning > even with the "Verbose", "Strict ANSI Conformance" and warnings set to > 9. The commandline options were: > > -P -N255 --strict --warn=3D9 --asmlist > --opt=3Ddefault,+asm,-asmfile,+speed,-space,-debug --addrqual=3Dignore > --mode=3Dfree That's somewhat worrying. For something that can be a show stopper, why=20 doesn't it produce a warning or error? I'll check out what happens in MPLAB (I don't use MPLABX). David... --=20 ___________________________________________ David Duffy Audio Visual Devices P/L Unit 8, 10 Hook St, Capalaba 4157 Australia Ph: +61 7 38235717 Fax: +61 7 38234717 Our Web Site: www.audiovisualdevices.com.au ___________________________________________ --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .