Compilation Unit or until the next MESSAGE pragma
#pragma MESSAGE {(WARNING|ERROR| INFORMATION|DISABLE|DEFAULT){<CNUM>}}
None
<CNUM>: Number of message to be set in the C1234 format
None
This pragma selectively sets messages to information, warning, disable, or error.
In the following listing, parentheses ( ) were left out.
/* treat C1412: Not a function call, */ /* address of a function, as error */ #pragma MESSAGE ERROR C1412 void f(void); void main(void) { f; /* () is missing, but still legal in C */ /* ERROR because of pragma MESSAGE */ }
-WmsgSd: Setting a Message to Disable
-WmsgSe: Setting a Message to Error