Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic VisualMicro Compiler Warning: OK for 1.0.5-rc, NOK for 1.5.5-rc2? (Read 4489 times)
thjakob
Junior Member
**
Offline


Posts: 23
Joined: Apr 29th, 2013
VisualMicro Compiler Warning: OK for 1.0.5-rc, NOK for 1.5.5-rc2?
Jan 28th, 2014 at 10:03pm
Print Post  
Hello,

Is there a problem to enable compiler warnings with 1.5.x (or have I missed up something)?

When I build my project in VM choosing the 1.0.x-setting, I get some usefull compilerwarnings.
But there are no compiler warnings with  1.5.x  (ok, maybe my programms are more compatible with 1.5.x    Grin )

What I figured out:
The compiler is called by Atmel-Stuido/VisualMicro (no idea ...) . One call looks like this for 1.5.x:
GCC: 4.3.2
Sketchbook: file:///E:/Users/Thomas/Documents/Arduino
"C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=150 -DARDUINO_AVR_LEONARDO -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8036 -DUSB_MANUFACTURER= -DUSB_PRODUCT="\"Arduino Leonardo\"" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\leonardo" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire" -I"E:\Users\Thomas\Documents\Arduino\libraries\RTC" -I"E:\Users\Thomas\Documents\Arduino\libraries\blabla" -I"E:\Users\Thomas\Documents\Arduino\libraries\Time" nardo\TerrariumSteuerung_V011.cpp" -o nardo\TerrariumSteuerung_V011.cpp.o" -DVISUALMICRO_COMPILER_VER=1

The allmost same line is called for 1.0.x - but there is no "-w"  option given - and "-w" suppresses (at least some) of the compiler warnings...

So, how to omit the "-w" with  1.5.x?

Thank you
Thomas


« Last Edit: Jan 28th, 2014 at 10:05pm by thjakob »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VisualMicro Compiler Warning: OK for 1.0.5-rc, NOK for 1.5.5-rc2?
Reply #1 - Jan 28th, 2014 at 10:50pm
Print Post  
Hi,

Thanks for raising this. 

I guess you switched on Tools>Options>Compiler>Warnings or Tools>Options>Compiler>Verbose to see if that gives what you need?

For Arduino 1.0 the build process is hard coded but for 1.5 we use the Arduino dynamic configuration files to read the instructions for the build process. It sounds like we missed the warnings flag and will find a solution.

Which options have you selected for your test?

  
Back to top
IP Logged
 
thjakob
Junior Member
**
Offline


Posts: 23
Joined: Apr 29th, 2013
Re: VisualMicro Compiler Warning: OK for 1.0.5-rc, NOK for 1.5.5-rc2?
Reply #2 - Jan 28th, 2014 at 11:01pm
Print Post  
Hi Tim,

Yes, I played around with  Tools>Options>Compiler>Warnings
(this gives me no Warnings with the 1.5.5)

By looking closer to my question, I enabled `Verbose` also - and - by the use of the commandline playing arround with some of the outputs given - got the option  "-w" as my main victime...   Wink

So, sorry if I can not be more prezise - I do not realy know what I'm doing - it's just funny to play with that tool !   Cool

But first of all - I wish a good night!
Thomas
« Last Edit: Jan 28th, 2014 at 11:03pm by thjakob »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VisualMicro Compiler Warning: OK for 1.0.5-rc, NOK for 1.5.5-rc2?
Reply #3 - Jan 29th, 2014 at 5:18am
Print Post  
The Arduino 1.5.x build process doesn't provide a setting to control the warnings we have to hack it Smiley

Try the latest beta 1401.29 from codeplex, it does the hacking if "Show warnings" is enabled

Thanks
« Last Edit: Jan 29th, 2014 at 5:19am by Tim@Visual Micro »  
Back to top
IP Logged
 
thjakob
Junior Member
**
Offline


Posts: 23
Joined: Apr 29th, 2013
Re: VisualMicro Compiler Warning: OK for 1.0.5-rc, NOK for 1.5.5-rc2?
Reply #4 - Jan 29th, 2014 at 4:02pm
Print Post  
Hi Tim,

You're a good hacker!  Wink

Thanks a lot
Thomas
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint