Controls the issuing of warning messages for redundant statements.
#pragma warn_no_side_effect on | off | reset
If you enable this pragma, the compiler issues a warning message when it encounters a statement that produces no side effect. To suppress this warning message, cast the statement with (void). Listing: Example of Pragma warn_no_side_effect provides an example.
#pragma warn_no_side_effect on void func(int a,int b) { a+b; /* WARNING: expression has no side effect */ (void)(a+b); /* OK: void cast suppresses warning. */ }