Skip to content
Commit 8d7b6b4c authored by Florian Weimer's avatar Florian Weimer
Browse files

socket: Use may_alias on sockaddr structs (bug 19622)



This supports common coding patterns.  The GCC C front end before
version 7 rejects the may_alias attribute on a struct definition
if it was not present in a previous forward declaration, so this
attribute can only be conditionally applied.

This implements the spirit of the change in Austin Group issue 1641.

Suggested-by: default avatarMarek Polacek <polacek@redhat.com>
Suggested-by: default avatarJakub Jelinek <jakub@redhat.com>
Reviewed-by: default avatarSam James <sam@gentoo.org>
Reviewed-by: default avatarCarlos O'Donell <carlos@redhat.com>
parent 2a99e239
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment