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 below generate warnings with the Illegal Pragmas setting enabled:
#pragma near_data off // WARNING: near_data is not a pragma.
#pragma far_data select // WARNING: select is not defined
#pragma far_data 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 Option Settings for information on how to use this directive.