Keil Logo

µVISION: Options for xxx - C/C++ - Warnings settings are inconsistent


Information in this knowledgebase article applies to:

  • MDK-ARM v5.20 and older versions

QUESTION

In µVision I selected Pedantic in Options for Target - C/C++(AC6) - Warnings for the entire target, as shown in the following screenshot. 

Then I click on the individual source code file name in the Project window and select "All Warnings" in Options for File - C/C++(AC6) - Warnings, instead of Pedantic, as shown in the following screenshot. But from the compilation output of my project, I can see that the source code file still inherits the warnings from the Options for Target waarings setting.

However, as long as I modified something in Options for File for an individual file, with a star mark shown up on the file icon as shown in the following screenshot, this deviation of the warnings setting for individual files will take effect. That means "All Warnings" will be selected to compiler this file instead of "Pedantic" inherited from Options for Target. Many additional warnings are generated in the compilation output. Is it a bug or feature of µVision?

CAUSE

This is actually a bug in MDK v5.20 and all older MDK v5.x versions. By default this warnings setting should inherit and depend on options on parent µVision group levels, where "unspecified" instead of "All Warnings" should be selected by default for this warnings setting.

RESOLUTION

By updating MDK-ARM to a version newer than v5.20 can resolve this issue.

MORE INFORMATION

Last Reviewed: Friday, February 24, 2017


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.