Saturday, 22 January 2011

#pragma warn directive in c









In c there are many warning messages which can be on or off with help of #pragma warn.



Syntax :




#pragma warn +xxx

#pragma warn –xxx

#pragma warn .xxx




Where

+ means on

- means off

. means on/off (toggle)





xxx is indicate particular warning code in thee alphabet. Example :



rvl is warning code which means function should return a value.




#include

#pragma

No comments:

Post a Comment