Thread (24 messages) 24 messages, 2 authors, 2016-03-07

Re: [ethtool PATCH v3 05/12] marvell.c: fix strict alias warnings

flat view

From: Ben Hutchings <hidden>
Date: 2016-03-07 16:06:54

On Fri, 2016-03-04 at 16:42 -0800, David Decotigny wrote:
From: Maciej Żenczykowski <redacted>

Addresses the following warnings:
  marvell.c:426:2: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
  marvell.c:427:2: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
  marvell.c:428:2: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]

Note: code appears endian-dependent, not fixed by this commit.
[...]

LGTM.

Ben.

-- 
Ben Hutchings
The most exhausting thing in life is being insincere. - Anne Morrow Lindberg

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help