From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id D05D75684 for ; Tue, 5 Jul 2016 12:45:16 +0200 (CEST) Received: by mail-wm0-f48.google.com with SMTP id r190so26126307wmr.0 for ; Tue, 05 Jul 2016 03:45:16 -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=Tmj8an+S5D5ESnSl1NTuGfMgCUJKltq4uM30T0QpHFSfEu+B/xcf2HgkrU/usg+czB 4/+zkkm1r4c8VpctAXCYVff7KwuCM8M5Ltz5W5paYO2IZ4jFfdMmZmTfLl6B6umaqqEZ PjTiLZ4ivqnddHne4BBoc+81iMIbmLN4312XDN3k8/cZTjjyHqe7qQMxo82THc721qD6 ck8tQuRC3MALaQZk/07JgF5YgdamxGa1dYpf4yG8L/8w4yjVUHSxQ+49egNrTGDNlazR t7nuA1e927PozKhCutPtjYkTy2YtyEm2yHmLX4ZN6ZVEqgnbi1osc6+V+QJ6ZyXiq+Mb WWRg== 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=VTilbSdYJwa/F86qkPV4woyLamZ8VBLa2MQYE+fkhTSQtJoQosXib7W1F0VPscvyVS 4kOxQ75MMuz3ixEGGumkhVKjilLuD50culPrgoFcxUEvwN0DPQ2BcDt81u8mxdGMM/Gh DxjUmMPMxZDVOs8/O0UKBe2/ttKStRvVgoskOnnVhiQQRSVhGnGHc5lFaDkV/FuHPV6p iMPLtW3cdov7lydHCKuXxy+f5XvH2c3BSwmTNwk1U2be0tFFTfEQHp3J9Sb2f85opq/T v6K7XfPBj+TDObbAFBKO7jszkYmWCnkc6z3vTreRGIVB2IAXItxBz4feDKVhxXKvKHuu zenA== X-Gm-Message-State: ALyK8tIq0cU5tDcctZzepr3bNDaAvNWtk3BEB2rbH6g2O5CJF27f6zcnJmO/CIkWZcdZpxSe X-Received: by 10.28.166.23 with SMTP id p23mr15651531wme.58.1467715516482; Tue, 05 Jul 2016 03:45:16 -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 a84sm2003057wma.0.2016.07.05.03.45.15 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 05 Jul 2016 03:45:15 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Date: Tue, 5 Jul 2016 12:44:51 +0200 Message-Id: <89b82c69afc0f3c704957dd80c77470e5911e07a.1467715254.git.adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: <1459865290-10248-1-git-send-email-adrien.mazarguil@6wind.com> Subject: [dpdk-dev] [PATCH v2 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: Tue, 05 Jul 2016 10:45:17 -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