Keil Logo

C51: WARNINGLEVEL DIRECTIVE


Information in this article applies to:

  • C51 Version 5.50 and Later

QUESTION

How can I control which warnings are output by the compiler?

ANSWER

The warninglevel directive allows you to suppress compiler warnings. You may use this directive to set the compiler warning level to one of the following values.

0 — Disables almost all compiler warnings
1 — Lists only those warnings which may generate incorrect code.
2 — Lists all WARNING messages. This is the default setting.

MORE INFORMATION

Last Reviewed: Thursday, July 5, 2007


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.