[liboping] [collectd] [PATCH] Fix gcc-4.4 strict-aliasing issue

Florian Forster octo at verplant.org
Mon Mar 16 09:46:54 CET 2009

Hi Alan,

On Tue, Mar 03, 2009 at 06:23:03PM +0100, apevec at gmail.com wrote:
> cc1: warnings being treated as errors
> liboping.c: In function 'ping_host_add':
> liboping.c:995: error: dereferencing pointer 'si' does break strict-aliasing rules

thanks again for pointing this out ;)

I hope that newer versions of liboping fix this issue. The appropriate
commit can be found here:

In collectd I've just removed the `sockaddr' variable altogether, since
it was never read from it. For the next version I plan to either remove
src/liboping entirely or upgrade it to a new version. The appropriate
commit is here:

Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/liboping/attachments/20090316/6688ae3d/attachment.pgp 

More information about the liboping mailing list