The WARNING directive changes the level of individual
compiler warnings. You may disable a selected warning, list it only
once, or treat the warning message as an error. The WARNING
directive also allows you to change the warning level in which the
message is listed. Refer to
Error
Messages for a complete list of compiler warnings.
The WARNING directive has the following format:
WARNING level = warning 〚, warning〛
where
level
is the level to which the warning is switched
or a command that determines subsequent compiler action for the
warning(s).
#pragma warning error = 95
/* changes warning 95 to an error */
#pragma warning once = 56, 57
/* report only the first occurrence */
/* of warning 56 & 57 */
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.