]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: select: only declare existing local labels to appease clang
authorJerome Magnin <jmagnin@haproxy.com>
Wed, 13 May 2020 13:11:02 +0000 (15:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 13 May 2020 14:25:26 +0000 (16:25 +0200)
Commit 42a50bd19 ("BUG/MINOR: pollers: remove uneeded free in global
init") removed the 'fail_revt' label from the _do_init() function
in src/ev_select.c but left the local label declaration, which makes
clang unhappy and unable to build.

These labels are only historic and unneeded anyway so let's remove them.

This should be backported where 42a50bd19 is backported.

src/ev_select.c

index d02669f0f62d79753bb6cd527d2232f651798c44..c4ab023e97a3f8d8bb63cd40bec57c735bda6c56 100644 (file)
@@ -253,7 +253,6 @@ static void deinit_select_per_thread()
  */
 static int _do_init(struct poller *p)
 {
-       __label__ fail_swevt, fail_srevt, fail_revt;
        int fd_set_bytes;
 
        p->private = NULL;