[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pointer conversion errors
From: |
Paul Eggert |
Subject: |
Re: pointer conversion errors |
Date: |
Tue, 01 Nov 2005 11:59:38 -0800 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Ralf Wildenhues <address@hidden> writes:
> [ Paul, the rest of this thread will be readable soon at
> http://lists.gnu.org/archive/html/libtool-patches/2005-11/msg00002.html
> We'd be interested in your opinion on this matter -- thanks. ]
My understanding is that even with the patch, you'll still get
diagnostics with some compilers, because a conforming C compiler is
required to generate a warning if you cast a void * pointer to a
function pointer. See
<http://www.opengroup.org/austin/interps/uploads/40/1068/ai-003.txt>.
How about changing the signature of foreach_dirinpath so that it
accepts an extra argument of type 'int (*) (char const *, void *)'?
You can use this argument to pass the function pointers.