Mailing List Archive

[PATCH] lib: compile fix for gcc-10
quagga does not use a __packed variable anywhere in the code, but
this is what lib/prefix.h was defining. gcc-10 now flags this as
multiple definition of `__packed' on linking.

This was meant as compiler attribute packed, so use the proper
packaged attribut syntax to fix the build issues.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
---
lib/prefix.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/prefix.h b/lib/prefix.h
index 2cf0b20b..5a6c3635 100644
--- a/lib/prefix.h
+++ b/lib/prefix.h
@@ -44,7 +44,7 @@
*/
struct ethaddr {
u_char octet[ETHER_ADDR_LEN];
-} __packed;
+} __attribute__((__packed__));


/*
--
2.28.0

_______________________________________________
Quagga-dev mailing list
Quagga-dev@lists.quagga.net
https://lists.quagga.net/mailman/listinfo/quagga-dev