When the warn_resultnotused is on, the compiler will issue a warning when it encounters a statement that calls a function without using its result. To prevent this warning, cast the statement with (void). See Listing 6.2 for an example.
#pragma warn_resultnotused on
void foo(int a,int b)
{
bar(); // warning: bar()'s result is not used
(void)bar(); // void cast suppresses warning
}