If you enable the Illegal Pragmas setting, the compiler issues a warning when it encounters a pragma it does not recognize. For example, the pragma statements in The following listing generate warnings with the Illegal Pragmas setting enabled.
#pragma near_data off // WARNING: near_data is not a pragma. #pragma ANSI_strict select // WARNING: select is not defined #pragma ANSI_strict on // OK
The Illegal Pragmas setting corresponds to the pragma warn_illpragma, described at warn_illpragma. To check this setting, use __option (warn_illpragma).
See Checking Pragma Settings for information on how to use this directive.