Hi,
Does anyone know if it's possible to show compiler warnings in the Arduino IDE? It only shows errors with the default configuration.
Thanks,
Zach
Hi,
Does anyone know if it's possible to show compiler warnings in the Arduino IDE? It only shows errors with the default configuration.
Thanks,
Zach
Hold the SHIFT key while pressing the compile button... all the compiling progress will be shown..
Here's some representative output of holding down the Shift key while compiling:
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/5D/5D1wtrJOFcCdyD3dDDlwdk+++TI/-Tmp-/build8918810003090415654.tmp/core.a /var/folders/5D/5D1wtrJOFcCdyD3dDDlwdk+++TI/-Tmp-/build8918810003090415654.tmp/WMath.cpp.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-ar rcs /var/folders/5D/5D1wtrJOFcCdyD3dDDlwdk+++TI/-Tmp-/build8918810003090415654.tmp/core.a /var/folders/5D/5D1wtrJOFcCdyD3dDDlwdk+++TI/-Tmp-/build8918810003090415654.tmp/WString.cpp.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -Os -Wl,--gc-sections -mmcu=atmega328p -o /var/folders/5D/5D1wtrJOFcCdyD3dDDlwdk+++TI/-Tmp-/build8918810003090415654.tmp/ece4994.cpp.elf /var/folders/5D/5D1wtrJOFcCdyD3dDDlwdk+++TI/-Tmp-/build8918810003090415654.tmp/ece4994.cpp.o /var/folders/5D/5D1wtrJOFcCdyD3dDDlwdk+++TI/-Tmp-/build8918810003090415654.tmp/leds.cpp.o /var/folders/5D/5D1wtrJOFcCdyD3dDDlwdk+++TI/-Tmp-/build8918810003090415654.tmp/main.cpp.o /var/folders/5D/5D1wtrJOFcCdyD3dDDlwdk+++TI/-Tmp-/build8918810003090415654.tmp/mic.cpp.o /var/folders/5D/5D1wtrJOFcCdyD3dDDlwdk+++TI/-Tmp-/build8918810003090415654.tmp/push_btn.cpp.o /var/folders/5D/5D1wtrJOFcCdyD3dDDlwdk+++TI/-Tmp-/build8918810003090415654.tmp/state.cpp.o /var/folders/5D/5D1wtrJOFcCdyD3dDDlwdk+++TI/-Tmp-/build8918810003090415654.tmp/step_motor.cpp.o /var/folders/5D/5D1wtrJOFcCdyD3dDDlwdk+++TI/-Tmp-/build8918810003090415654.tmp/core.a -L/var/folders/5D/5D1wtrJOFcCdyD3dDDlwdk+++TI/-Tmp-/build8918810003090415654.tmp -lm
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /var/folders/5D/5D1wtrJOFcCdyD3dDDlwdk+++TI/-Tmp-/build8918810003090415654.tmp/ece4994.cpp.elf /var/folders/5D/5D1wtrJOFcCdyD3dDDlwdk+++TI/-Tmp-/build8918810003090415654.tmp/ece4994.cpp.eep
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom /var/folders/5D/5D1wtrJOFcCdyD3dDDlwdk+++TI/-Tmp-/build8918810003090415654.tmp/ece4994.cpp.elf /var/folders/5D/5D1wtrJOFcCdyD3dDDlwdk+++TI/-Tmp-/build8918810003090415654.tmp/ece4994.cpp.hex
Binary sketch size: 5730 bytes (of a 32256 byte maximum)
Note that this only shows the files being generated. There are no compiler warnings.
I'm on Mac OS X 10.6.7. Could that have anything to do with the lack of warnings?
Thanks,
Zach
You can see the commands and you can call these in a makefile (or bat file) and adjust warning flags ...
Its not in the IDE but at least you get some warnings..