commit | 4fc2cd7c8e30fde56ab46d2b945615617b45e0f7 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon May 09 19:45:06 2022 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Mon May 09 20:32:11 2022 +0200 |
tree | c79ea3834d8906a8c64cc329438decb20cbcdcaa | |
parent | 444d7021300eb8ace19d36aec2e8f9840ab4b1d5 [diff] |
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.