[PATCH] AIX - fix for xlc compile warnings due to missing typecasts

Ethan Galstad nagios at nagios.org
Sun Nov 2 19:09:01 CET 2008


Markus Baertschi wrote:
> 
> On AIX the xlc compiler warns about incompatible pointer types
> in base/events.c, base/nebmods.c and xdata/xpddefault.c.
> The message is typically as this:
> "nebmods.c", line 538.48: 1506-068 (W) Operation between types "void*"
> and "int(*)(int,void*)" is not allowed.
> This patch adds the necessary typecasts '(void*)' to eliminate the warning.
> 
> The patch applies against 3.0.3 and the CVS tarball. I've tested
> it on AIX 5.3 with xlc (the IBM compiler) and gcc and also on
> Linux (Ubuntu hardy, gcc 4.1.2).
> 
> Markus

Thanks!


- Ethan Galstad

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/




More information about the Developers mailing list