This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc C - No Warning when downcasting
- From: John Love-Jensen <eljay at adobe dot com>
- To: <saravanan at k dot st>, <gcc-help at gcc dot gnu dot org>
- Date: Mon, 09 Jun 2003 07:42:42 -0500
- Subject: Re: gcc C - No Warning when downcasting
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