BUILD: stats: conditionally mark obsolete stats states as deprecated
authorWilly Tarreau <w@1wt.eu>
Mon, 9 May 2022 17:46:35 +0000 (19:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 9 May 2022 18:32:11 +0000 (20:32 +0200)
commitecab71fbac3e14ca2f7f4b83081830c6ac9539ba
treeec280fc57e4db92314ba4bf5adcc380f37e521ae
parent4fc2cd7c8e30fde56ab46d2b945615617b45e0f7
BUILD: stats: conditionally mark obsolete stats states as deprecated

The obsolete stats states STAT_ST_* were marked as deprecated with recent
commit 6ef1648dc ("CLEANUP: stats: rename the stats state values an mark
the old ones deprecated"), except that this feature requires gcc 6 and
above. Let's use the macro that depends on this condition instead.

The issue appeared on 2.6-dev9 so no backport is needed.
include/haproxy/stats-t.h