[prev in list] [next in list] [prev in thread] [next in thread] 

List:       liboping
Subject:    Re: [liboping] [collectd] [PATCH] Fix gcc-4.4 strict-aliasing issue
From:       Florian Forster <octo () verplant ! org>
Date:       2009-03-16 8:46:54
Message-ID: 20090316084654.GY25815 () verplant ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Hi Alan,

On Tue, Mar 03, 2009 at 06:23:03PM +0100, apevec@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/

["signature.asc" (application/pgp-signature)]

_______________________________________________
liboping mailing list
liboping@verplant.org
http://mailman.verplant.org/listinfo/liboping


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic