From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by dpdk.org (Postfix) with ESMTP id 6E361559C for ; Mon, 29 Jul 2013 14:44:49 +0200 (CEST) Received: by mail-we0-f178.google.com with SMTP id u57so3918701wes.37 for ; Mon, 29 Jul 2013 05:45:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:subject:date:message-id:x-mailer:in-reply-to:references :in-reply-to:references:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=lk0P/SYeNeK0et9Maj6THv9F7KN4i/6eTB007U6J9H0=; b=NgGKnYDiQPVrm55v7u6m4JmBb5t597LiyCGnsEtH9FQN/QUKZ1HY3eU7bNoEZKZje6 MPDBbsGqIqefHwDwsZKPpcvMRe7gQxE0eL+KZc87zwIUNBKCkXqP8wbzwUAqo5vJ9iRZ sGG34xFr54MLpWm/v08rB4fE5nw1e76SIEmdUOopyWVBUDDNJWSepTe2Mbvhl03B25r2 FlpRUAdwDRw+swxKbFwFkPVg8u+VE1EbWbz44MsKTVaqlKP4KRqMpegZhPt53pyD/7+i Cn2m35jASSxUFYjq/0OncU4NU63pJ0QXmxd5p4OHgOhbja6LGpmHCJuUhZe4MuCgskTi A6rg== X-Received: by 10.180.206.97 with SMTP id ln1mr7082863wic.39.1375101913104; Mon, 29 Jul 2013 05:45:13 -0700 (PDT) Received: from 6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id nb12sm22294157wic.7.2013.07.29.05.45.10 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 29 Jul 2013 05:45:12 -0700 (PDT) Received: by 6wind.com (sSMTP sendmail emulation); Mon, 29 Jul 2013 14:45:09 +0200 From: Thomas Monjalon To: dev@dpdk.org Date: Mon, 29 Jul 2013 14:44:55 +0200 Message-Id: <6c57bdadc99eb8febc7344c7dfbbccde8aa42734.1375101416.git.thomas.monjalon@6wind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQlLVZTtGf+/TupC3hURTIc6T3YOkm9dfKmKZx6WvvAzJRYiR05Wk4xbwPf9NtZPdQopsWmm Subject: [dpdk-dev] [PATCH 4/4] app: fix build with gcc 4.8 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, 29 Jul 2013 12:44:49 -0000 GCC 4.8 was producing this error: argument to ‘sizeof’ in ‘strncmp’ call is the same expression as the second source; did you mean to provide an explicit length? [-Werror=sizeof-pointer-memaccess] Signed-off-by: Thomas Monjalon --- app/test/test_cmdline_string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_cmdline_string.c b/app/test/test_cmdline_string.c index 7b358cf..84a82ce 100644 --- a/app/test/test_cmdline_string.c +++ b/app/test/test_cmdline_string.c @@ -383,7 +383,7 @@ test_parse_string_valid(void) return -1; } if (strncmp(buf, string_elt_strs[i].result, - sizeof(string_elt_strs[i].result)) != 0) { + sizeof(buf)) != 0) { printf("Error: result mismatch!\n"); return -1; } -- 1.7.10.4