From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by dpdk.org (Postfix) with ESMTP id 824868054 for ; Mon, 15 Dec 2014 12:08:00 +0100 (CET) Received: by mail-wi0-f170.google.com with SMTP id bs8so10097888wib.1 for ; Mon, 15 Dec 2014 03:08:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=cXd4e21ZWvC/Q2xmGQ02ATP56rBMi3xd6IKidORUzMM=; b=dKefJM/hx9TC0iNdiDbyFjzG1aX5dAiJHT5NDEisJMjhsDtT0iHN31B2jRRJqutcZY L7LSHKY6U/gX9JurJer55a6pGZhVmZ0kC0m2WRWvaY87XUabxOLJJqvP2AYjQ/1VR/Ql zjTDb31DBh6AQguTpaGpjQOKjIvTxrq3A0ZB0TcjSS0lIdseTNkAl1yBZMKTAcZOzbgq 76fYjBZHmmCXhsrcYOHBMzAM6vuYtBVMKUWcbzaVYli9VqL2cHb60g4bdn54oTTjJNOK BZ/7no1apZdGh1HoLdoFx0Lj/EX2QNEAI52e6qQvpE46r3TNsogAkjFQUaMNC4SfhbzC 8IVg== X-Gm-Message-State: ALoCoQlIsDlodjgNpW0LnjMntFvf5GBP+t4eWMZXE3kn7Uxz1nxusgu7jjsZewP+cWhDZFacPe5q X-Received: by 10.195.11.74 with SMTP id eg10mr7289842wjd.107.1418641680359; Mon, 15 Dec 2014 03:08:00 -0800 (PST) Received: from localhost.localdomain (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id u9sm12591566wjy.37.2014.12.15.03.07.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Dec 2014 03:07:59 -0800 (PST) From: Thomas Monjalon To: dev@dpdk.org Date: Mon, 15 Dec 2014 12:07:29 +0100 Message-Id: <1418641649-4277-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.1.3 In-Reply-To: <19703944.gAxOdpYSXo@xps13> References: <19703944.gAxOdpYSXo@xps13> Subject: [dpdk-dev] [PATCH] enic: fix build on SUSE 11 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2014 11:08:00 -0000 GCC 4.5.1 from SUSE throws this error: lib/librte_pmd_enic/enic_main.c:862:2: error: value computed is not used It seems to be a GCC bug. Reported-by: Michael Qiu Suggested-by: Pawel Wodkowski Signed-off-by: Thomas Monjalon --- lib/librte_pmd_enic/enic_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librte_pmd_enic/enic_main.c b/lib/librte_pmd_enic/enic_main.c index e4f43c5..8cfb6e3 100644 --- a/lib/librte_pmd_enic/enic_main.c +++ b/lib/librte_pmd_enic/enic_main.c @@ -858,7 +858,8 @@ static int enic_set_rsskey(struct enic *enic) if (!rss_key_buf_va) return -ENOMEM; - rte_memcpy(rss_key_buf_va, &rss_key, sizeof(union vnic_rss_key)); + /* ignore return to workaround a bug seen with GCC 4.5.1 on SUSE 11 SP3 */ + (void) rte_memcpy(rss_key_buf_va, &rss_key, sizeof(union vnic_rss_key)); err = enic_set_rss_key(enic, rss_key_buf_pa, -- 2.1.3