[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#577158: gcc-4.3: incorrect warning 'incompatible pointer type'



Package: gcc-4.3
Version: 4.3.2-1.1
Severity: normal

When compiling following source code

--------
typedef int * intp;
void foo(intp);
void bar(void (*)(void*));

void warning()
{
    bar(foo);
}
--------
gcc warns about
`` passing argument 1 of ‘bar’ from incompatible pointer type ''
It seems not to understand intp is a typedef on a pointer type.

This does not look like a relevant warning to me.

I hope I provided enough information ?

Thanks anyway !

-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (700, 'stable'), (650, 'testing'), (550, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gcc-4.3 depends on:
ii  binutils                      2.20.1-2   The GNU assembler, linker and bina
ii  cpp-4.3                       4.3.2-1.1  The GNU C preprocessor
ii  gcc-4.3-base                  4.3.2-1.1  The GNU Compiler Collection (base 
ii  libc6                         2.10.2-6   Embedded GNU C Library: Shared lib
ii  libgcc1                       1:4.4.2-9  GCC support library
ii  libgomp1                      4.4.2-9    GCC OpenMP (GOMP) support library

Versions of packages gcc-4.3 recommends:
ii  libc6-dev                     2.10.2-6   Embedded GNU C Library: Developmen

Versions of packages gcc-4.3 suggests:
ii  gcc-4.3-doc                  4.3.2.nf1-1 documentation for the GNU compiler
pn  gcc-4.3-locales              <none>      (no description available)
pn  gcc-4.3-multilib             <none>      (no description available)
pn  libgcc1-dbg                  <none>      (no description available)
pn  libgomp1-dbg                 <none>      (no description available)
pn  libmudflap0-4.3-dev          <none>      (no description available)
pn  libmudflap0-dbg              <none>      (no description available)

-- no debconf information



Reply to: