Hi Sar, >I want to know about which gcc command line option will give the warning when downcasting of integer variables to short/char etc. None. Implicit "downcasting" from int to short or char is part of C/C++. So such code is completely legal and legit. Unfortunately. Sincerely, --Eljay