Hi Amit,
>Is there any way where I can tell the compiler to make a particular warning to represent as error like we do it in 'cl' with the use of 'pragma' ?
You can turn off all warnings, then turn on the warnings you are interested in, and then turn all warnings-into-errors. All on the command line invocation of gcc (or g++) as the compiler/linker.
That's about as close as you can get, though.
HTH, --Eljay