const_strings

Controls the const-ness of string literals.

Syntax
  #pragma const_strings [ on | off | reset ]  
Remarks

If you enable this pragma, the compiler will generate a warning when string literals are not declared as const. The following listing shows an example.

Listing: const_strings example
char *string1 = "hello";         /*OK, if const_strings is disabled*/

const char *string2 = "world";   /* Always OK */

This pragma does not correspond to any setting in the Language panel. To check this setting, use __option (const_strings), described in Checking Pragma Settings.