Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!yale!hsdndev!spdcc!ima!dirtydog!karl From: karl@ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: ANSI C -> non-ANSI C Message-ID: <1990Dec08.195517.5795@dirtydog.ima.isc.com> Date: 8 Dec 90 19:55:17 GMT References: <90335.163132TRM900@psuvm.psu.edu> <14630@smoke.brl.mil> <2880@lupine.NCD.COM> <308@dcsun21.dataco.UUCP> Sender: news@dirtydog.ima.isc.com (NEWS ADMIN) Reply-To: karl@ima.isc.com (Karl Heuer) Organization: Interactive Systems Lines: 22 In article <308@dcsun21.dataco.UUCP> amodeo@dcsun03 (Roy Amodeo,DC) writes: >In article <2880@lupine.NCD.COM> rfg@NCD.COM (Ron Guilmette) writes: >>[I've been planning to add an (optional) GCC warning for non-trivial >>conversions caused by prototypes.] I like this solution. (Note that it may be approximated with current tools by unprotoizing and then running lint.) >make it the default [with an option to turn it off]. The important bit is to get the feature implemented and make it optional. Deciding which setting should be default is a minor issue, and in any case it can be tuned for your local site. (I usually run gcc with -Wall -Wcast-qual -Wwrite-strings, myself.) >I don't suppose you can say "3d" or "3.0L" for "(double)3" can you? Since floating-point constants have type "double" by default, it suffices to use "3.0" (or even "3.", but I consider it good style to always have a digit on each side of the decimal point). Karl W. Z. Heuer (karl@ima.isc.com or uunet!ima!karl), The Walking Lint