Keil Logo

ARMCC: WARNINGS SUPPRESSED FOR SYSTEM INCLUDE DIR FILES


Information in this article applies to:

  • MDK-ARM All Versions

QUESTION

After placing a custom include file into the system include directory, default is: C:\Keil\ARM\RV31\INC, no warning message is generated for this file, even though #pragma warning has been used. Also, --diag_error has no effect. Why are no warnings printed?

ANSWER

Warnings are suppressed for all include files located in directories that are specified by "-Jdir[,dir,...]", which is the case for the system include directory, even though --diag_error is used.

RESOLUTION

Do not add custom include files to the system include directory. Such files should be added to a separate include directory, which can be added to the include path by specifying "-Idir[,dir,...]" or via Options for Target — C/C++ — Include Paths.

MORE INFORMATION

Last Reviewed: Wednesday, January 25, 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.