From patchwork Mon Feb 25 07:08:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masashi Honma X-Patchwork-Id: 222854 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "maxx.shmoo.com", Issuer "CA Cert Signing Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 3502C2C0094 for ; Mon, 25 Feb 2013 18:08:42 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 99C799D1E5; Mon, 25 Feb 2013 02:08:39 -0500 (EST) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9ePVLrMbYwtB; Mon, 25 Feb 2013 02:08:39 -0500 (EST) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 7442A9C0D8; Mon, 25 Feb 2013 02:08:35 -0500 (EST) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id D4C9C9C0D8 for ; Mon, 25 Feb 2013 02:08:34 -0500 (EST) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EckZc+Hnn+2D for ; Mon, 25 Feb 2013 02:08:30 -0500 (EST) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id D7FE59C0CD for ; Mon, 25 Feb 2013 02:08:29 -0500 (EST) Received: by mail-la0-f53.google.com with SMTP id fr10so2369751lab.12 for ; Sun, 24 Feb 2013 23:08:26 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.152.128.98 with SMTP id nn2mr8964953lab.17.1361776106803; Sun, 24 Feb 2013 23:08:26 -0800 (PST) Received: by 10.114.68.145 with HTTP; Sun, 24 Feb 2013 23:08:26 -0800 (PST) Date: Mon, 25 Feb 2013 16:08:26 +0900 Message-ID: Subject: [PATCH] Interworking: Remove unused variable warnings From: Masashi Honma To: hostap ML X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com 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 Regards, Masashi Honma. diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c index 3602b07..6fe762f 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;