[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:
<http://git.verplant.org/?p=liboping.git;a=commit;h=35bc474dbcb278905e5181d88f9ea78001b3380a>

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:
<http://git.verplant.org/?p=collectd.git;a=commit;h=2d8915c37b7be045e6e638ff67e0b1168b4136a6>

Regards,
-octo
-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
-------------- 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