Your message dated Sun, 11 Apr 2010 16:42:00 +0200
with message-id <20100411144200.ga27...@minet.uni-jena.de>
and subject line Bug#577158: gcc-4.3: incorrect warning 'incompatible pointer
type'
has caused the Debian Bug report #577158,
regarding gcc-4.3: incorrect warning 'incompatible pointer type'
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
577158: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=577158
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
On Sat, Apr 10, 2010 at 09:47:50AM +0200, serge guelton
<serge.guel...@enst-bretagne.fr> wrote:
> 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 ?
void (*)(void*) and void (*)(int*) are simply not compatible. The
typedef has nothing to do with this.
Falk
--- End Message ---