From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A2D1DA0548; Thu, 4 Nov 2021 13:19:17 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 89E57411A4; Thu, 4 Nov 2021 13:19:17 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 790DC41144 for ; Thu, 4 Nov 2021 13:19:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1636028356; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=63jQtjy2J+VOReFiw7JLbMZAbD/nbMMxyBaWNZfjcgY=; b=cv2QrWAC+g+UEAigOvmEhfrQ75Dnaw0f+q0xn3P0RETdhRwwbmN1K/59Fx7pIz3e23kNX7 P8iM6M7uhzP913l+blJGP3gBasMBqkfjt8uK5e87nrGwkDozihwKKlz+rCHc2T7MfAbBUk dhmZqW9IqylM2RQJarih8FADcpM1ecI= Received: from mail-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-146-crPh2qNVMKu863CpDgHRbQ-1; Thu, 04 Nov 2021 08:19:14 -0400 X-MC-Unique: crPh2qNVMKu863CpDgHRbQ-1 Received: by mail-lj1-f199.google.com with SMTP id f9-20020a05651c160900b00217e6a3ec32so2196073ljq.1 for ; Thu, 04 Nov 2021 05:19:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=63jQtjy2J+VOReFiw7JLbMZAbD/nbMMxyBaWNZfjcgY=; b=FkhEK5Jb00YbPkD6M58snVH6rLYfjpeM3cL4lGSCMCZJS4sYP/9hmS9qH3kCapLZhg CdqQmBo23AQqz5AXQe9WGWxqvwa7P0bWxucoTB2ojo34mOzSJN5RMs6085jzTUr3iKw7 bw+UvChni+Ahzyn5L9eVC7GvbmsSP0KfroVb8se3KeHOPhszD6dCf4oB4HJAe8Bh6M/t nRQP5MvcsgpsJWVyBba2LNSRgDexV47BiFIqDxvOosKhOqw8CQpdzjkJ3u0zISUopqKi /Gsws+HWtwiUtj+ilgUVRiYW1luO3wDwL2fij7uIkodCA4nBihBUpuv4oPTUBsVRT1hY w6UQ== X-Gm-Message-State: AOAM530Q64pIFY2x6njxtT+yySYpn9NpTPALDWz/PZRuTVi4ftaSUd79 gk/QgiR51qGtu4wVO74oy+dm2lCqTZBXuVleTNwcEycHd+K/0vyu6jLZpzdKezYpiMAizQYmxIl MCLoLgMFYvRGKFsRD8dE= X-Received: by 2002:a2e:83c6:: with SMTP id s6mr38195317ljh.477.1636028353193; Thu, 04 Nov 2021 05:19:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlUeomgj5NN9WFzrNABb3G2/cC/iU3qgdJ2tyC0ermjXD9dHA+UwibTwn4ojttDBt62eJfJHEJCPN70M69aLI= X-Received: by 2002:a2e:83c6:: with SMTP id s6mr38195295ljh.477.1636028353017; Thu, 04 Nov 2021 05:19:13 -0700 (PDT) MIME-Version: 1.0 References: <20211029171410.330128-1-james.r.harris@intel.com> In-Reply-To: From: David Marchand Date: Thu, 4 Nov 2021 13:19:02 +0100 Message-ID: To: Jim Harris Cc: dev Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] eal: fix unused-but-set-variable error X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, Oct 29, 2021 at 8:48 PM David Marchand wrote: > > On Fri, Oct 29, 2021 at 7:17 PM Jim Harris wrote: > > > > clang-13 rightfully complains that the total_mem > > variable in eal_parse_socket_arg is set but not > > used, since the final accumulated total_mem > > result isn't used anywhere. So just remove the > > total_mem variable. > > Fixes: 0a703f0f36c1 ("eal/linux: fix parsing zero socket memory and limits") > > > Signed-off-by: Jim Harris > Reviewed-by: David Marchand Applied, thanks. -- David Marchand