MINOR: compiler: add a new macro to set an attribute on an enum when possible
authorWilly Tarreau <w@1wt.eu>
Mon, 9 May 2022 17:45:06 +0000 (19:45 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 9 May 2022 18:32:11 +0000 (20:32 +0200)
commit4fc2cd7c8e30fde56ab46d2b945615617b45e0f7
treec79ea3834d8906a8c64cc329438decb20cbcdcaa
parent444d7021300eb8ace19d36aec2e8f9840ab4b1d5
MINOR: compiler: add a new macro to set an attribute on an enum when possible

Gcc 6 and above support placing an attribute on an enum's value. This
is convenient for marking some values as deprecated. We just need the
macro because older versions fail to parse __attribute__() there.
include/haproxy/compiler.h