[build] Avoid strict-aliasing warnings when building with gcc 4.4

Conventional usage of the various struct sockaddr_xxx types involves
liberal use of casting, which tends to trigger strict-aliasing
warnings from gcc.  Avoid these now and in future by marking all the
relevant types with __attribute__((may_alias)).
This commit is contained in:
Michael Brown
2009-01-05 19:19:23 -08:00
parent 21cfab4fb8
commit 85e5e25c52
6 changed files with 6 additions and 7 deletions

View File

@@ -10,8 +10,8 @@
#include <gpxe/refcnt.h>
#include <gpxe/interface.h>
#include <gpxe/tables.h>
#include <gpxe/socket.h>
struct sockaddr;
struct resolv_interface;
/** Name resolution interface operations */