From d5bd94133978f99c5906beaa23e8ca370b47f8a0 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 23 Jan 2017 06:41:47 +0200 Subject: [PATCH] MBO: Silence a compiler warning when building without CONFIG_MBO The fail label is used only within ifdef CONFIG_MBO, so declare it in the same manner. Signed-off-by: Jouni Malinen --- hostapd/ctrl_iface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c index 6b4aa0542..62feaa407 100644 --- a/hostapd/ctrl_iface.c +++ b/hostapd/ctrl_iface.c @@ -1070,7 +1070,9 @@ static int hostapd_ctrl_iface_bss_tm_req(struct hostapd_data *hapd, nei_pos > nei_rep ? nei_rep : NULL, nei_pos - nei_rep, mbo_len ? mbo : NULL, mbo_len); +#ifdef CONFIG_MBO fail: +#endif /* CONFIG_MBO */ os_free(url); return ret; }