]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD/MINOR: lua: fix a harmless build warning
authorWilly Tarreau <w@1wt.eu>
Wed, 17 Jun 2015 17:43:49 +0000 (19:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 17 Jun 2015 17:46:16 +0000 (19:46 +0200)
commit22b0a68120e6c7bebe15c4b60dca0acebf32df50
tree7e4158de3e57fa6314ea8d92d57b3a8b84632f7c
parent745d4127582a8c66e2e8ce35f746a78e867960af
BUILD/MINOR: lua: fix a harmless build warning

Dmitry Sivachenko reported the following build warning using Clang,
though it's harmless :

  src/hlua.c:1911:13: warning: variable '_socket_info_expanded_form' is not needed
        and will not be emitted [-Wunneeded-internal-declaration]
  static char _socket_info_expanded_form[] = SOCKET_INFO_EXPANDED_FORM;
              ^
Indeed, the variable is not used except to compute a sizeof which is
taken from the string it is initialized from. It probably is a leftover
after various code refactorings. Let's get rid of it now since it's not
used anymore.

No backport is needed.
src/hlua.c