Bug 22413

Summary: [telepathy-gabble 0.7.29] gcc 4.4 -O2 strict-aliasing warning
Product: Telepathy Reporter: Ionut Biru <biru.ionut>
Component: gabbleAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED DUPLICATE QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: compilation log

Description Ionut Biru 2009-06-22 06:20:44 UTC
Created attachment 27006 [details]
compilation log

my CFLAGS is -march=x86-64 -mtune=generic -O2 -pipe. is not x86_64 related and
is working if i add -fno-strict-aliasing.

asyncns.c: In function ‘asyncns_wait’:
asyncns.c:984: warning: dereferencing pointer ‘ai_resp’ does break strict-aliasing rules
asyncns.c:985: warning: dereferencing pointer ‘ai_resp’ does break strict-aliasing rules
asyncns.c:986: warning: dereferencing pointer ‘ai_resp’ does break strict-aliasing rules
asyncns.c:976: note: initialized from here
asyncns.c:1017: warning: dereferencing pointer ‘ni_resp’ does break strict-aliasing rules
asyncns.c:1018: warning: dereferencing pointer ‘ni_resp’ does break strict-aliasing rules
asyncns.c:1019: warning: dereferencing pointer ‘ni_resp’ does break strict-aliasing rules
asyncns.c:1021: warning: dereferencing pointer ‘ni_resp’ does break strict-aliasing rules
Comment 1 Simon McVittie 2009-08-24 13:13:17 UTC
Hopefully we can fix this by updating to a newer asyncns.

Could you please try the latest version of asyncns from its author, available from <http://0pointer.de/lennart/projects/libasyncns/>, and see whether that compiles without warnings? If it does, we'll just need to update to a newer version; if it doesn't, please report the bug to Lennart.
Comment 2 Simon McVittie 2009-09-14 12:23:31 UTC

*** This bug has been marked as a duplicate of bug 23685 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.