From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 0BA2F4CE6 for ; Fri, 15 Jul 2016 17:17:58 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id i5so34383302wmg.0 for ; Fri, 15 Jul 2016 08:17:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=vEs8BhZuClA6lxVpq6gTzUJCPr/TCw/3C+QSLb8LGkM=; b=0TNySSyq+/EdcwxfmBJM3MoS8dovR34U81oTV9kTeFofHkRgIFAw+KiBBRdVNPfvyR n/wCygLnvstVXd2JFTQ3xtW87P7pMosa4MW7Tkh5JrCLb7iLTIxnBNFCNtO6wiLb+Qkb UnOz774rt1AquFWzkR36+m09XNEyWlgpeFs2FHryxEJYbEDcHviiJG9pmI34ohi4Tc8i f0Q9kGvNb9jooARDNw66QKfqX2fonEr7FqhKLJ2QRst9JRfyn4yoYZ17WgU/64+IObdw CvcLkI1wkahhI5x/8YSo+IA45DVsDyilUGCSiZAAY4kUcXofcF28O6QgA9nYCsv7QteY CtGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=vEs8BhZuClA6lxVpq6gTzUJCPr/TCw/3C+QSLb8LGkM=; b=g6HSGFnL7+mIi/MF4HMXMess9SZdtV3KP4z9hSfPFSb9D5P4QyB5YkUSJVJoogyk6l CFpsDJlUTn1Ax/kuMKZiLOUIDIZojcJeuTb1O12vu9eZcJVYrBcagutn9zd6B9MlWrmu fB0FtPiGBSYVT77ewiR4JhQVoSoKYgwDsu8IuPakXDtRQCbdJz7KJdRpOdFAWfbyq4hV WxO2qS2V40ZOOh3DgmJIpnc7I1XyZeZoXsFG2m7S+NBp17bWwKkBkvZWqu2qKNh9N2oE zYYJQDGE9HjNywI4gKmXyc4XTRUn78HY1ARRzc5GfxFj14muKCz9G0wbYNIb8T8nYdIF H1Tw== X-Gm-Message-State: ALyK8tIQqXlwwHUqFG34Ic6+iA/+cLX/D8IiW8lUYe8ZkVIBCcMlNCjGF8GvE/6TJ28KgoGj X-Received: by 10.194.62.236 with SMTP id b12mr1283691wjs.76.1468595877799; Fri, 15 Jul 2016 08:17:57 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id e5sm1228254wju.36.2016.07.15.08.17.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jul 2016 08:17:56 -0700 (PDT) From: Thomas Monjalon To: Adrien Mazarguil Cc: dev@dpdk.org, Olivier MATZ Date: Fri, 15 Jul 2016 17:17:55 +0200 Message-ID: <6229308.49cPbzrqc3@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <57863E82.4010405@6wind.com> References: <1468413041-22357-1-git-send-email-adrien.mazarguil@6wind.com> <57863E82.4010405@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] mempool: fix empty structure definition 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, 15 Jul 2016 15:17:58 -0000 > > This commit addresses the following warning reported by clang, which > > happens by default, as long as CONFIG_RTE_LIBRTE_MEMPOOL_DEBUG is disabled: > > > > warning: empty struct has size 0 in C, size 1 in C++ > > > > C and C++ must use the same size for objects to avoid corruption during run > > time. > > > > Fixes: 97e7e685bfcd ("mempool: add structure for object trailers") > > > > Signed-off-by: Adrien Mazarguil > > Acked-by: Olivier Matz Applied, thanks