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


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?


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.


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


Last Reviewed: Friday, February 24, 2017

Did this article provide the answer you needed?
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.