[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [PATCH] Avoid warnings about ignored packed attributes
From: |
David Woodhouse |
Subject: |
[lwip-devel] [PATCH] Avoid warnings about ignored packed attributes |
Date: |
Mon, 22 Sep 2008 11:18:51 -0700 |
I get a whole bunch of warnings along these lines:
warning: ‘packed’ attribute ignored for field of type ‘struct ip_hdr’
If the struct is marked as packed, there should be no need to mark each
member as packed too...
--- ports/unix/include/arch/cc.h.orig 2008-09-22 11:09:01.000000000 -0700
+++ ports/unix/include/arch/cc.h 2008-09-22 11:09:06.000000000 -0700
@@ -61,6 +61,6 @@ typedef unsigned long mem_ptr_t;
/* Compiler hints for packing structures */
-#define PACK_STRUCT_FIELD(x) x __attribute__((packed))
+#define PACK_STRUCT_FIELD(x) x
#define PACK_STRUCT_STRUCT __attribute__((packed))
#define PACK_STRUCT_BEGIN
#define PACK_STRUCT_END
--
David Woodhouse Open Source Technology Centre
address@hidden Intel Corporation