Stefan Fritsch wrote on Tue, Feb 21, 2012 at 22:53:44 +0100: > On Tuesday 21 February 2012, Michael Felt wrote: > > FYI - I see no notable difference in the W messages with the IBM > > vacpp (xlc) v7 compiler using no CFLAGS and CFLAGS='-O2 > > -qlanglvl=extc99' > > Hrm. Assigning function pointers to void * is not really portable. Not > sure about the best way to fix this, yet, while keeping the code > readable. >
I think the issue is a constness mismatch? > > "util_expr_eval.c", line 1601.7: 1506-196 (W) Initialization between types > > "const void*" and "int(*)(struct {...}*,const void*,const char*,const > > char*)" is not allowed. There is a "pointer to constant" on the left and a "pointer to func with such and such arguments and return value" on the right. Formally the function object itself isn't marked as const... > Cheers, > Stefan