ARM Technical Support Knowledge Articles

WARNINGS SUPPRESSED FOR SYSTEM INCLUDE DIR FILES

Applies to: RealView C Compiler

Answer


Information in this article applies to:


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

ATTACHED FILES

Request the files attached to this knowledgebase article.

Article last edited on: 2012-09-11 06:44:47

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential