Bug 1355 - pointer arithmetic/gcc strict-aliasing warnings
Summary: pointer arithmetic/gcc strict-aliasing warnings
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Miscellaneous (show other bugs)
Version: -current
Hardware: All All
: P2 minor
Assignee: Assigned to nobody
URL: http://lists.mindrot.org/pipermail/op...
Keywords: patch
Depends on:
Blocks: V_4_8
  Show dependency treegraph
 
Reported: 2007-08-16 09:41 AEST by Darren Tucker
Modified: 2008-03-31 15:21 AEDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darren Tucker 2007-08-16 09:41:03 AEST
Recent versions of gcc emit a the following warnings:

readconf.c: In function 'process_config_line':
readconf.c:695: warning: dereferencing type-punned pointer will break strict-aliasing rules
servconf.c: In function 'process_server_config_line':
servconf.c:979: warning: dereferencing type-punned pointer will break strict-aliasing rules
servconf.c:990: warning: dereferencing type-punned pointer will break 
strict-aliasing rules

Dmitry V. Levin has posted a diff to fix these (see URL).
Comment 1 Darren Tucker 2007-12-31 21:42:18 AEDT
This has been applied and will be in 4.8.
Comment 2 Damien Miller 2008-03-31 15:21:08 AEDT
Fix shipped in 4.9/4.9p1 release.