Assigning a function pointer with a char parameter to a pointer with an undefined list causes gcc to emit a warning.
[EMAIL PROTECTED]:~/ntnative/loader$ cat x.c void foo(char); void (*f1)() = foo; void bar(int); void (*f2)() = bar; [EMAIL PROTECTED]:~/ntnative/loader$ gcc -c x.c x.c:2: warning: initialization from incompatible pointer type [EMAIL PROTECTED]:~/ntnative/loader$ gcc -v Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release x86_64-linux-gnu Thread model: posix gcc version 4.1.2 20061028 (prerelease) (Debian 4.1.1-19) -- Summary: Assigning function with a char param emits a spurious warning Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mike at codeweavers dot com GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29827