mirror of
https://github.com/ipxe/ipxe
synced 2025-12-29 11:03:15 +03:00
[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:
@@ -9,10 +9,10 @@
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <gpxe/tables.h>
|
||||
#include <gpxe/socket.h>
|
||||
|
||||
struct xfer_interface;
|
||||
struct uri;
|
||||
struct sockaddr;
|
||||
|
||||
/** Location types */
|
||||
enum {
|
||||
|
||||
Reference in New Issue
Block a user