Bug#197504: gcc-3.3: too relaxed checking with -Wstrict-prototypes
Package: gcc-3.3
Version: 1:3.3-3
Severity: normal
Tags: upstream
$ cat gcc-bug.c
int foo(void);
int foo()
{
return 42;
}
$ gcc -c -Wstrict-prototypes gcc-bug.c
$
I expected gcc to raise a warning in line 3, because a function is
declared with an unknown parameter list instead of an empty list.
Instead, line 3 should look like "int foo(void)".
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux pc-debian 2.4.20-3-k7-smp #1 SMP Sun Jun 8 02:32:21 EST 2003 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages gcc-3.3 depends on:
ii binutils 2.14.90.0.4-0.1 The GNU assembler, linker and bina
ii cpp-3.3 1:3.3-3 The GNU C preprocessor
ii gcc-3.3-base 1:3.3-3 The GNU Compiler Collection (base
ii libc6 2.3.1-17 GNU C Library: Shared libraries an
ii libgcc1 1:3.3-3 GCC support library
-- no debconf information
Reply to: