From: Martin Str|mberg Message-Id: <200106090916.LAA26228@mother.ludd.luth.se> Subject: Re: Compiler options for djdev build To: djgpp-workers AT delorie DOT com Date: Sat, 9 Jun 2001 11:16:06 +0200 (MEST) In-Reply-To: <7263-Sat09Jun2001094842+0300-eliz@is.elta.co.il> from "Eli Zaretskii" at Jun 09, 2001 09:48:42 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk According to Eli Zaretskii: > > Some warnings I don't understand and can't get to go away (I only > > tried to remove the todigit ones and gave up): > > > > make -C ansi/stdio > > gcc ... -c doprnt.c > > cc1.exe: warnings being treated as errors > > doprnt.c: In function `_doprnt': > > doprnt.c:167: warning: passing arg 1 of `todigit' with different width due to prototype > > Change `todigit' (near the beginning of doprnt.c) to accept an int > instead of a char, and the warning will go away. Yes, but *fmt is a char and todigit expects a char. The warning doesn't make sense to me. And you seem to say *fmt is an int? ... > Basically, this warning alerts you to any function whose prototype > modifies the default promotion of arguments. This flags functions > whose prototypes include char, short, and float arguments. IMHO, > these practices are unsafe and should be avoided. They are? Isn't that what prototypes are for? Right, MartinS