Move out: label to inside #endif of HAVE_DLOPEN
commit4a5fc6bcdee0f704e421009958a64dcfd4b852d2
authorAndrew Bartlett <abartlet@samba.org>
Thu, 24 Jun 2021 22:09:33 +0000 (25 10:09 +1200)
committerLuke Howard <lukeh@padl.com>
Thu, 24 Jun 2021 23:44:53 +0000 (25 09:44 +1000)
tree2953dda3997ae1f0f5531d46e2615f8e05b5834b
parent040a093654bfbb602ef0ab9807f51a5c83cf9596
Move out: label to inside #endif of HAVE_DLOPEN

Samba compiles Heimdal internally without HAVE_DLOPEN to keep
to internally supplied mechanisms and plugins.

Samba compiles with strict warning flags and on Ubuntu 20.04
with gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04) we see:

../../source4/heimdal/lib/gssapi/mech/gss_mech_switch.c: In function ‘_gss_load_mech’:
../../source4/heimdal/lib/gssapi/mech/gss_mech_switch.c:462:1: error: label ‘out’ defined but not used [-Werror=unused-label]
  462 | out:
      | ^~~
cc1: all warnings being treated as errors

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
lib/gssapi/mech/gss_mech_switch.c