]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: tcp_sample: var_fc_counter defined but not used
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 25 Nov 2024 10:41:26 +0000 (11:41 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 25 Nov 2024 10:41:26 +0000 (11:41 +0100)
commitda1331b0b59c41c17a3a86d20c05a04ef13f20b4
tree5d4af35517de53bd8f24e4c4d461a7fe369041d0
parent079193e375405895efbd3bd70d6509bfa9976bab
BUILD: tcp_sample: var_fc_counter defined but not used

var_fc_counter is not used on Illumos and emit a warning

  src/tcp_sample.c:291:12: warning: â€˜var_fc_counter’ defined but not used [-Wunused-function]
    291 | static int var_fc_counter(struct arg *args, char **err)
        |            ^~~~~~~~~~~~~~

Let's add an ifdef to build it.
src/tcp_sample.c