From patchwork Tue Sep 11 12:52:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masashi Honma X-Patchwork-Id: 183105 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]) by ozlabs.org (Postfix) with ESMTP id DF67E2C0091 for ; Tue, 11 Sep 2012 22:52:14 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 6D71C9D29E; Tue, 11 Sep 2012 08:52:12 -0400 (EDT) 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 8e8gdRpK4G2N; Tue, 11 Sep 2012 08:52:12 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id F0DA917C005; Tue, 11 Sep 2012 08:52:07 -0400 (EDT) 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 9CE119D295 for ; Tue, 11 Sep 2012 08:52:06 -0400 (EDT) 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 f2FumgXGlJgZ for ; Tue, 11 Sep 2012 08:52:01 -0400 (EDT) Received: from mail-qc0-f172.google.com (mail-qc0-f172.google.com [209.85.216.172]) (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 A973C17C004 for ; Tue, 11 Sep 2012 08:52:01 -0400 (EDT) Received: by qcac10 with SMTP id c10so356487qca.17 for ; Tue, 11 Sep 2012 05:52:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.138.143 with SMTP id a15mr18673768qau.64.1347367921489; Tue, 11 Sep 2012 05:52:01 -0700 (PDT) Received: by 10.49.85.7 with HTTP; Tue, 11 Sep 2012 05:52:01 -0700 (PDT) Date: Tue, 11 Sep 2012 21:52:01 +0900 Message-ID: Subject: [PATCH] Remove unused function warning in WPS NFC case 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: , Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com When I use CONFIG_WPS_NFC=y a warning appears. wps_supplicant.c:1872:12: warning: 'wpas_wps_add_nfc_password_token' defined but not used [-Wunused-function] This patch removes this warning. Signed-hostap: Masashi Honma static int wpas_wps_nfc_tag_process(struct wpa_supplicant *wpa_s, Regards, Masashi Honma. diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c index 130f3ab..915ca57 100644 --- a/wpa_supplicant/wps_supplicant.c +++ b/wpa_supplicant/wps_supplicant.c @@ -1869,6 +1869,7 @@ static int wpas_wps_use_cred(struct wpa_supplicant *wpa_s, } +#ifdef CONFIG_WPS_ER static int wpas_wps_add_nfc_password_token(struct wpa_supplicant *wpa_s, struct wps_parse_attr *attr) { @@ -1876,6 +1877,7 @@ static int wpas_wps_add_nfc_password_token(struct wpa_supplicant *wpa_s, wpa_s->wps->registrar, attr->oob_dev_password, attr->oob_dev_password_len); } +#endif /* CONFIG_WPS_ER */