Re: C: Add new warning -Wunprototyped-calls

2013-04-08 Thread Richard Biener
On Sat, Apr 6, 2013 at 11:50 PM, Andreas Schwab sch...@linux-m68k.org wrote: Tobias Burnus bur...@net-b.de writes: gcc.dg/Wunprototyped-calls.c:13:3: warning: call to function ‘g’ without a real prototype [-Wunprototyped-calls] What is a real prototype? One reason I didn't bother to

Re: C: Add new warning -Wunprototyped-calls

2013-04-08 Thread Andreas Schwab
Richard Biener richard.guent...@gmail.com writes: when a real prototype was visible How is that different from a prototype? Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 And now for something completely different.

Re: C: Add new warning -Wunprototyped-calls

2013-04-08 Thread Richard Biener
On Mon, Apr 8, 2013 at 3:05 PM, Andreas Schwab sch...@linux-m68k.org wrote: Richard Biener richard.guent...@gmail.com writes: when a real prototype was visible How is that different from a prototype? It's different from the case where a KR definition was seen and thus type information is

Re: C: Add new warning -Wunprototyped-calls

2013-04-08 Thread Andreas Schwab
Richard Biener richard.guent...@gmail.com writes: On Mon, Apr 8, 2013 at 3:05 PM, Andreas Schwab sch...@linux-m68k.org wrote: Richard Biener richard.guent...@gmail.com writes: when a real prototype was visible How is that different from a prototype? It's different from the case where a KR

C: Add new warning -Wunprototyped-calls

2013-04-06 Thread Tobias Burnus
This patch comes from Richard's SUSE GCC patch. There, -Wunprototyped-calls is enabled for all RPM builds. -Wunprototyped-calls prints a warning if one calls a function with an argument with is declared without prototype. For instance: gcc.dg/Wunprototyped-calls.c: In function ‘main’:

Re: C: Add new warning -Wunprototyped-calls

2013-04-06 Thread Andreas Schwab
Tobias Burnus bur...@net-b.de writes: gcc.dg/Wunprototyped-calls.c:13:3: warning: call to function ‘g’ without a real prototype [-Wunprototyped-calls] What is a real prototype? Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B