midl_pragma warning attribute
Use the midl_pragma warning option to temporarily override MIDL's warning message behavior at compile time.
midl_pragma warning ( warning_option : message_list )
Parameters
-
warning_option
-
The warning option can be one of the following: disable, enable, default.
-
message_list
-
A list of message numbers separated by spaces.
Remarks
The pragma can be used like a C-compiler pragma. That is, it disables, enables, or returns to the default behavior for a given MIDL warning.
Examples
#if (__midl >= 501)
midl_pragma warning( disable: 2007 ) // file already imported midl_pragma warning( disable: 2209 ) // ignored redundant attr
#endif
See also