From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by dpdk.org (Postfix) with ESMTP id B68AB6891 for ; Fri, 13 Sep 2013 16:14:04 +0200 (CEST) Received: by mail-wi0-f175.google.com with SMTP id ez12so848392wid.8 for ; Fri, 13 Sep 2013 07:14:41 -0700 (PDT) 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:in-reply-to:references:mime-version:content-type :content-transfer-encoding; bh=2lELGPEqZWbJ8mZ+ZnKdufHsv+MoxA0gMIhQsLxhlYc=; b=RFn9oXbZVd9zLRP1QseRqpU8IvNnCQQM2X0oHTcuRFy2EuQQUSYugULQ4YuflGhxr4 BEn7cdGRGTK8XxFUYSmtPuTb8EPuQgScxIBnk32cDkRq1pKUEym12Wdc/p1EJmSFBX/Q izIVJKdOWKRpLSCCQvWpSLjXrzIcjgBScf8fBO9v7LGJLaQmorGf1q3+xRGauM7S8Ffa RSFy15ueekzwB3gTSfHR/HJgWqPTVhL8ox0KKPIJaWRYs9Z9UmPFloa3nkgm2wWydJ1h Qcq1EYFsWTkOCIdPWrOODbENSuLsRAwh9SpEqUogQN2kx7pViHAD+pbkO0u2mtKlB3bG 2HRQ== X-Gm-Message-State: ALoCoQmTurUrW2WzUDbeUt1yCNbFRWwz+0ACPV+qy52NeK0l+AsiSyiLx3Wkq9nzwSbAejqS6ogu X-Received: by 10.194.77.2 with SMTP id o2mr1554501wjw.57.1379081681863; Fri, 13 Sep 2013 07:14:41 -0700 (PDT) Received: from 6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by mx.google.com with ESMTPSA id jf2sm3885133wic.2.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 07:14:41 -0700 (PDT) Received: by 6wind.com (sSMTP sendmail emulation); Fri, 13 Sep 2013 16:14:39 +0200 From: Thomas Monjalon To: dev@dpdk.org Date: Fri, 13 Sep 2013 16:14:30 +0200 Message-Id: <4960b865443e982857323637c3df35d106286bf0.1379081595.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 Subject: [dpdk-dev] [PATCH v2 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: Fri, 13 Sep 2013 14:14:05 -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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/test/test_cmdline_string.c b/app/test/test_cmdline_string.c index 7b358cf..4b7e066 100644 --- a/app/test/test_cmdline_string.c +++ b/app/test/test_cmdline_string.c @@ -382,8 +382,7 @@ test_parse_string_valid(void) printf("Error: getting string element failed!\n"); return -1; } - if (strncmp(buf, string_elt_strs[i].result, - sizeof(string_elt_strs[i].result)) != 0) { + if (strcmp(buf, string_elt_strs[i].result) != 0) { printf("Error: result mismatch!\n"); return -1; } -- 1.7.10.4