This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
integer conversion warnings?
- From: Egon Eckert <egon at heaven dot industries dot cz>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 27 Mar 2002 18:32:54 +0100
- Subject: integer conversion warnings?
Hi,
is gcc/g++ able to warn me in these cases:
short int a;
long int b;
a = b;
that the conversion may lose significant digits? Borland's
compiler does it and I would really appreciate that. :-)
I didn't find the answer in FAQs nor in list archives nor
with Google -- is it *so* obvious? :-O
Thanks,
--
Egon Eckert, Heaven Industries, s.r.o.
E-mail: egon@heaven.industries.cz