From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id 2E5172C38 for ; Tue, 5 Apr 2016 16:08:36 +0200 (CEST) Received: by mail-wm0-f41.google.com with SMTP id l6so25386469wml.1 for ; Tue, 05 Apr 2016 07:08:36 -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:in-reply-to:references; bh=VfydwG7df62qZi6HBlM6o06RycCfqOjQw5dfRHJA6ow=; b=SkAY5Ouvd8kqnuIrc00aaoUQ1/3bKfgnOcLP08eu9JZPhzN6F5NfNenNEXa/9yZHOY ggGww8c2aPoMfOh7jwvmzF9poRvWnv04UoBiCxpiQQ3kTINVV7Lv27K4GVP8SmrnZ0m6 hrrYgHX0gnzHau5N4kyRahZtkCfxms3R8jtqsSUDggZ9GI6Wtzqe15DqfEAp8uYa1OMY tSToEYfiges/qoilGZUJL1HDm5+vYGHxHLBT5Rfx1442gPA0OaMEjYkvMcSS5LuDwWo0 wkDw6m7kugT/EEXj7Gd2GXm4Ay8j77PnNqnyekxxn7p68zm+t6C0jpwu0Ct0SwtGUFQ+ p48g== 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:in-reply-to :references; bh=VfydwG7df62qZi6HBlM6o06RycCfqOjQw5dfRHJA6ow=; b=Jy/in2Y/zFh8NJtnIZubJu8R+Labaddhi0SCRTBask7JZsDqId9bYKhJqVHG7W8T8d 1vJoGf/jJe9DrEa468OoQkIY5ZgHaqBh++VsR9tIV6a59phaXg49BuLtRd1YLDBJeGzJ VVI8XNyWapi41BDJeafEW3sdr2Rh8Q4X9fl7uVzoLUB7Uj/hzAr3o830aI3WKiuC4LKW R6ElfSGkIHQAv2GlF+EzXccYRE7v6iODO9YVzf9z2Ipdym55C97liupBSbyIARsKiHAY HoNQXokF3CVw/VdtTDrTu9o3eUIVyPYIAR8k2k/djB+hxVQD6qJ09Rf7A0gmBPsZGfDz 9pXQ== X-Gm-Message-State: AD7BkJKM+vTPgy0BD0aX1FcfPfttEqcnxiaMKQub1z2BWPNpwgSLSXzztrad41/KT0OjNAkH X-Received: by 10.28.146.209 with SMTP id u200mr17660547wmd.59.1459865316101; Tue, 05 Apr 2016 07:08:36 -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 hq2sm34912095wjb.3.2016.04.05.07.08.35 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Apr 2016 07:08:35 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Cc: Bruce Richardson , Thomas Monjalon Date: Tue, 5 Apr 2016 16:08:05 +0200 Message-Id: <1459865290-10248-6-git-send-email-adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1459865290-10248-1-git-send-email-adrien.mazarguil@6wind.com> References: <1459865290-10248-1-git-send-email-adrien.mazarguil@6wind.com> Subject: [dpdk-dev] [PATCH 05/10] lib: add extension keyword to 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 Apr 2016 14:08:36 -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 9745bf0..a46e661 100644 --- a/lib/librte_mempool/rte_mempool.h +++ b/lib/librte_mempool/rte_mempool.h @@ -169,6 +169,7 @@ struct 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