Modify

#726 new defect

Warnings while building bitlbee

Reported by: Matěj Cepl <mcepl@…> Owned by:
Priority: normal Milestone:
Component: BitlBee Version: 3.0
Keywords: Cc:
IRC client+version: Client-independent Operating System: Public server
OS version/distro:

Description

Just that it may be interesting to investigate warnings on the build of bitlbee on Fedora.

* Compiling irc.c
ipc.c: In function 'ipc_readline':
ipc.c:583:5: warning: dereferencing type-punned pointer will break strict-aliasing rules
ipc.c: In function 'ipc_send_fd':
ipc.c:766:2: warning: dereferencing type-punned pointer will break strict-aliasing rules
...
* Compiling io.c
msn_util.c: In function 'msn_handler':
msn_util.c:333:8: warning: ignoring return value of 'write', declared with attribute warn_unused_result
msn_util.c:334:8: warning: ignoring return value of 'write', declared with attribute warn_unused_result

Attachments (0)

Change History (2)

comment:1 Changed at 2012-01-31T14:09:58Z by Artem Savkov <artem.savkov@…>

Can confirm this. Though it happens only with -O2 and higher.

comment:2 Changed at 2015-10-31T02:04:16Z by dx

Strict aliasing ones fixed in https://github.com/bitlbee/bitlbee/commit/129e2825aa6d5e1d34c58cec57a0db312ccc6b87

Ignoring the return value of write, tbh, I don't care. They are harmless, especially compared to the strict aliasing ones. Also I can only see them when compiling with older gcc in a different distro.

Modify Ticket

Action
as new The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.