You can use pragma message to emit a message to the command line or to the message window. You would get this warning if you use the incorrect syntax, so
#pragma message( "hi there" )
is correct, but the following code would generate the warning:
#pragma message( badly formed )