BUILD: fix recent build failure on unaligned archs
authorWilly Tarreau <w@1wt.eu>
Fri, 21 Feb 2020 16:40:25 +0000 (17:40 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 28 Feb 2020 09:56:10 +0000 (10:56 +0100)
Last commit 2c315ee ("BUG/MEDIUM: ebtree: don't set attribute packed
without unaligned access support") accidently enclosed the semicolon
in the ifdef so it will fail when HA_UNALIGNED is not set.

(cherry picked from commit d43183d05f26e29fb0e75cf2b5f8a4ef47f8891d)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>

ebtree/ebtree.h

index 0ba42f1..6ac79d6 100644 (file)
@@ -381,8 +381,9 @@ struct eb_node {
        short unsigned int pfx; /* data prefix length, always related to leaf */
 }
 #ifdef HA_UNALIGNED
-   __attribute__((packed));
+   __attribute__((packed))
 #endif
+   ;
 
 /* Return the structure of type <type> whose member <member> points to <ptr> */
 #define eb_entry(ptr, type, member) container_of(ptr, type, member)