From: Masashi Honma Date: Thu, 28 Feb 2013 13:01:09 +0000 (+0200) Subject: Interworking: Remove unused variable warnings X-Git-Tag: aosp-kk-from-upstream~530 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad5dda82227afc6fec6087b67c6c8a89b1bf2ca3;p=thirdparty%2Fhostap.git Interworking: Remove unused variable warnings This patch removes these warnings. interworking.c: In function 'interworking_credentials_available_3gpp': interworking.c:1330:6: warning: unused variable 'ret' [-Wunused-variable] interworking.c:1329:19: warning: unused variable 'cred' [-Wunused-variable] Signed-hostap: Masashi Honma --- diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c index 3602b078b..6fe762f01 100644 --- a/wpa_supplicant/interworking.c +++ b/wpa_supplicant/interworking.c @@ -1326,10 +1326,11 @@ fail: static struct wpa_cred * interworking_credentials_available_3gpp( struct wpa_supplicant *wpa_s, struct wpa_bss *bss) { - struct wpa_cred *cred, *selected = NULL; + struct wpa_cred *selected = NULL; +#ifdef INTERWORKING_3GPP + struct wpa_cred *cred; int ret; -#ifdef INTERWORKING_3GPP if (bss->anqp == NULL || bss->anqp->anqp_3gpp == NULL) return NULL;