From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id 573955598 for ; Thu, 7 Jul 2016 17:49:58 +0200 (CEST) Received: by mail-wm0-f47.google.com with SMTP id n127so21671305wme.1 for ; Thu, 07 Jul 2016 08:49:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=q1aHhIta1/Pyb0mfH+esbWMZsgr9h8cXltAnqC4HdH8=; b=ffSyitNsae7ObGmiRoPFEHqZnz0L1tielEO0DHfC5wOcYdGae8Onb6CI99zkHumTSu GncTROE+fg2GPgt+GRHaGbLtvIC8yCcdSfe/cZ/HkxHv+X6PFFat7j3Y2A822ZQQ1ytO 8y2Rqiiug9E7u0oQrPovI5IlxpyeCgct8dbK4rhGZrAOlHWlZehr9qNBw7jmT2k2BbnT b0WPxfbIpBtOJPX1nBepsgrBQa/qPs8ZNPvoG9tr9S+KH+DadKbkQXmBSL6tP3PeI9Bn JtUYK8xuio/XCOVSvZGlPIQJj6WQfWh4lDnpKAhQmHCJZazwzLUEuxKzq5PhjadDHBYc klww== 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=q1aHhIta1/Pyb0mfH+esbWMZsgr9h8cXltAnqC4HdH8=; b=P+kMkteZr+GNja0xk0dhxDucyR55cPjsOvL4s/gcCv+WcKcf4/ImYE//47x1i4kILd 2Rvd1AtFWpAv1vkJVlPXWkwEJ4dJ7c8/2/R8XUI3OiHwHZkL3T/WHNBSx872ZCOK5sEb axJPuU1bigna+bsl8s0YJaANrTWqmUw5/hwtERoT6TiQgWR7gnh7IVrTB3B+9Zo8T+5h haLywjZbWLkx9fMmnZTDd1PvWU2upKByh3DK2vSAo8yUCX8lqG+opF0wEUmw62hftW3z x0cceVEub36qUqEi2ObUqUAPt1DFUCn79XEnx8F7ElXPKdW/9fTmaAqFUURS2hjF7OHC Poig== X-Gm-Message-State: ALyK8tKV9TXUZ3zw/K4H+bzw3x6DXTN/KzPtGBMfO63Ws24tx7RnnnoLt5L9AHLHxEBnac9j X-Received: by 10.28.163.70 with SMTP id m67mr26490156wme.38.1467906597973; Thu, 07 Jul 2016 08:49:57 -0700 (PDT) Received: from 6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id e138sm3206272wme.16.2016.07.07.08.49.56 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 07 Jul 2016 08:49:57 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Date: Thu, 7 Jul 2016 17:49:27 +0200 Message-Id: <52bce4970e485731a45c4839de2ae9e8178cdf13.1467905467.git.adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v3 05/11] lib: work around structs with no members 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: Thu, 07 Jul 2016 15:49:58 -0000 Exported header files used by applications should allow the strictest compiler flags. Language extensions used in many places must be explicitly marked or removed to avoid warnings and compilation failures. This commit prevents the following errors: error: struct has no members Signed-off-by: Adrien Mazarguil --- lib/librte_mempool/rte_mempool.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_mempool/rte_mempool.h b/lib/librte_mempool/rte_mempool.h index fb7052e..fc33db8 100644 --- a/lib/librte_mempool/rte_mempool.h +++ b/lib/librte_mempool/rte_mempool.h @@ -169,6 +169,7 @@ STAILQ_HEAD(rte_mempool_objhdr_list, rte_mempool_objhdr); * In debug mode, each object stored in mempools are suffixed by this * trailer structure containing a cookie preventing memory corruptions. */ +__extension__ struct rte_mempool_objtlr { #ifdef RTE_LIBRTE_MEMPOOL_DEBUG uint64_t cookie; /**< Debug cookie. */ -- 2.1.4