]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: mux-spop: fix build failure on gcc 4-10 and clang
authorWilly Tarreau <w@1wt.eu>
Mon, 15 Jul 2024 17:16:58 +0000 (19:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 15 Jul 2024 17:19:13 +0000 (19:19 +0200)
commita5c5a68454a81aa2099346832905a58a623f5728
tree46ce13a0cc6ff3767752b685ad6d90bc3bf04763
parentb35323264144a93f0e24036d9d0b02b5a6ebcbe1
BUILD: mux-spop: fix build failure on gcc 4-10 and clang

A label at end of block was added in mux_spop.c in function
spop_conn_update_timeout() by commit 7e1bb7283b ("MEDIUM: mux-spop:
Introduce the SPOP multiplexer"). This is normally not permitted,
so gcc-4 to 10 and clang whine about it:

    CC      src/mux_spop.o
  src/mux_spop.c: In function 'spop_conn_update_timeout':
  src/mux_spop.c:899:2: error: label at end of compound statement
    899 |  leave:
        |  ^~~~~

Let's just add a return there to make the compiler happy. No backport
is needed.
src/mux_spop.c