Package: gcc-3.2
Version: 1:3.2.3-8
Severity: minor

If the following is compiled with the options -Wall -pedantic-errors :
  #include <stdio.h>
  int main( )
  {
    int i;
    printf("%p\n", &i );
    return 0;
  }

gcc emits the following:
  voidptr.c: In function `main':
  voidptr.c:5: warning: void format, different type arg (arg 2)

This warning is meaningless.  The type of the pointer doesn't matter
for printf to write out the address.

According to gcc --help, -pedantic-errors should result in an 
error.  It shouldn't add more non-error warnings.

The warning message is wrong.  Should be 'pointer format' or maybe 
'void* format', not 'void format'.  


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux rincewind 2.4.21-5-686-smp #1 SMP Sun Aug 24 16:31:04 EST 2003 
i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages gcc-3.2 depends on:
ii  binutils                   2.14.90.0.6-3 The GNU assembler, linker and bina
ii  cpp-3.2                    1:3.2.3-8     The GNU C preprocessor
ii  gcc-3.2-base               1:3.2.3-8     The GNU Compiler Collection (base 
ii  libc6                      2.3.2-7       GNU C Library: Shared libraries an
ii  libgcc1                    1:3.3.2-0pre5 GCC support library

-- no debconf information



Reply via email to