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.