From patchwork Mon Jul 11 17:46:26 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Netes X-Patchwork-Id: 965642 X-Patchwork-Delegate: alexne@voltaire.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p6BHkVtA004752 for ; Mon, 11 Jul 2011 17:46:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758350Ab1GKRqa (ORCPT ); Mon, 11 Jul 2011 13:46:30 -0400 Received: from mail.mellanox.co.il ([194.90.237.43]:48082 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758336Ab1GKRqa (ORCPT ); Mon, 11 Jul 2011 13:46:30 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from alexne@mellanox.com) with SMTP; 11 Jul 2011 20:46:27 +0300 Received: from MTRCASDAG01.mtl.com (172.25.0.174) by MTLCAS02.mtl.com (10.0.8.72) with Microsoft SMTP Server (TLS) id 14.1.289.1; Mon, 11 Jul 2011 20:46:27 +0300 Received: from localhost (172.25.5.62) by MTRCASDAG01.mtl.com (172.25.0.174) with Microsoft SMTP Server (TLS) id 14.1.289.1; Mon, 11 Jul 2011 20:46:26 +0300 Date: Mon, 11 Jul 2011 20:46:26 +0300 From: Alex Netes To: Subject: [PATCH 2/3] libvendor/osm_vendor_ibumad.c: fix unused-but-set warning Message-ID: <20110711174626.GD2084@localhost.localdomain> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [172.25.5.62] Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Mon, 11 Jul 2011 17:46:31 +0000 (UTC) is_rmpp might be set but unused when VENDOR_RMPP_SUPPORT is TRUE. Mark this variable as __attribute__((unused)) to remove this warning. Signed-off-by: Alex Netes --- libvendor/osm_vendor_ibumad.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libvendor/osm_vendor_ibumad.c b/libvendor/osm_vendor_ibumad.c index 5cd6f46..e2ebd8e 100644 --- a/libvendor/osm_vendor_ibumad.c +++ b/libvendor/osm_vendor_ibumad.c @@ -1002,7 +1002,7 @@ osm_vendor_send(IN osm_bind_handle_t h_bind, ib_mad_t *const p_mad = osm_madw_get_mad_ptr(p_madw); ib_sa_mad_t *const p_sa = (ib_sa_mad_t *) p_mad; int ret = -1; - int is_rmpp = 0; + int __attribute__((__unused__)) is_rmpp = 0; uint32_t sent_mad_size; uint64_t tid; #ifndef VENDOR_RMPP_SUPPORT