Pages: [1]   Go Down
Author Topic: Show Compiler Warnings in Arduino IDE  (Read 1178 times)
0 Members and 1 Guest are viewing this topic.
San Diego, CA
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Kuala Lumpur, Malaysia
Offline Offline
Full Member
***
Karma: 4
Posts: 204
Anything is possible
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hold the SHIFT key while pressing the compile button... all the compiling progress will be shown..

Logged


San Diego, CA
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Here's some representative output of holding down the Shift key while compiling:

Code:
/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
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 221
Posts: 13848
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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..
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Pages: [1]   Go Up
Jump to: