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 No compiler warnings (Read 3771 times)
Joachim
Newbies
*
Offline


Posts: 1
Joined: Sep 16th, 2013
No compiler warnings
Sep 16th, 2013 at 12:33pm
Print Post  
Hi Visual micro staff,
when I use gcc (for handling Atmel ASF code) I get informative warnings, e.g.:

int32_t a;

Warning      1      unused variable 'a' [-Wunused-variable]      

I looked in settings of the project properties but it seems VM uses its own settings so even "all warnings -Wall" do not produce warnings. 
What can we do here?

Oh, btw I used Bossac together with the output window which gave me a nice progress bar. Here too, I found no switch to tweak VM.


Joachim


  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No compiler warnings
Reply #1 - Sep 16th, 2013 at 2:47pm
Print Post  
Hi,

Thanks for raising this. The errors and warnings were supposed to be improved in the last release but the code was accidentally excluded from the build.

We will make sure this is in the next release due within a week or so.

We will also look at the bossac progress for the next release which also includes a number of other additions for 1.5 programmers.

Thanks again, please follow on codeplex or in the new releases board of this forum. (It takes some time for the Atmel Gallery to be updated after a new release)
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No compiler warnings
Reply #2 - Jan 11th, 2015 at 4:16am
Print Post  
Sorry for the delay I am sure it is no longer relevant but useful for other to have this information. 

I looked into this and found the problem is that the arduino 1.5 config files are hard coded to -w

Visual Micro provides menu items that normally allow you to switch on verbose compile and/or warnings (see menu 'tools>visual micro'). These menu items work for Arduino 1.0.x because Visual Micro controls the build process. Warnings are displayed in the way you describe.

However arduino 1.5 is supposed to be a process that avoids hard coding by visual micro. Instead visual micro reads the build configuration from external files supplied with the arduino ide or with 3rd part custom hardware definitions.

So in theory we can not set the warnings or verbose properties of the build processes unless the arduino team publish official 1.5 properties and implement them in their platform build definitions.

That said I have added this to the visual micro dev list for review because it's a fundamental requirement to see warnings. The solution might be for us to simply replace the static -w switch with -wall in the build commands just before running them.

In the meantime you can manually edit the platform.txt below the arduinoide\hardware\arduino\avr.. folder and replace -w with -wall

This will enable warnings in both the arduino ide and in visual micro. 

After making the change re-start atmel studio or click "tools>visual micro>reload toolchains"

Thanks


« Last Edit: Jan 11th, 2015 at 4:17am by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint