Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-05-27
05:37 • Closed ticket [712674ffff]: Is -Wconversion really needed? plus 7 other chan... artifact: e041d94941 user: hobbs
2003-04-02
14:31 • Ticket [712674ffff]: 4 changes artifact: 3f14b176be user: rmax
14:14 • Ticket [712674ffff]: 4 changes artifact: 8c6a78aeb3 user: mdejong
2003-03-31
12:55 • New ticket [712674ffff]. artifact: 5415c4cad7 user: rmax

Is -Wconversion really needed?

Closed / Wont Fix712674ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 23 years ago
Descriptionplain2003-03-31 12:55:00
Does it really make sense to have -Wconversion in the
CFLAGS if the C compiler is gcc? It only seems to create
loads of senseless warnings on 64bt platforms. OTOH if
these warnings do make sense we should fix them.
mdejongplain2003-04-02 14:14:35
Logged In: YES 
user_id=90858

I am not sure how much help -Wconversion really
is. It only seems to catch some really stupid errors
and most of the warnings I see from it are not
critical. I would vote to remove it, but I don't think
I added it in the first place, so I am not sure.
rmaxplain2003-04-02 14:31:05
Logged In: YES 
user_id=124643

It originally got added to configure.in in 1998, and Jeff
moved it to tcl.m4 in 2000. The original log message says:
----------------------------
revision 1.9
date: 1998/07/22 13:39:13;  author: escoffon; ...
Added support for specifying warning flags for the compiler,
with checks for gcc and appropriate defaults.
----------------------------
How about using it only when compiling with --enable-debug ?
hobbsplain2004-05-27 05:37:45
Logged In: YES 
user_id=72656

This was discussed on chat and -Wconversion does have some
spurious warnings, but it gets mixed with some potentially
valid 32/64-bit conversion errors.  Unless we have a better
way to get the latter without the former, I think we should
leave this as is.
Log in (anonymous is fine) to add a comment.