From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrien Mazarguil Subject: [PATCH 02/10] lib: add extension keyword to large enum values Date: Tue, 5 Apr 2016 16:08:02 +0200 Message-ID: <1459865290-10248-3-git-send-email-adrien.mazarguil@6wind.com> References: <1459865290-10248-1-git-send-email-adrien.mazarguil@6wind.com> Cc: Bruce Richardson , Thomas Monjalon To: dev@dpdk.org Return-path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id 76E132C5D for ; Tue, 5 Apr 2016 16:08:30 +0200 (CEST) Received: by mail-wm0-f45.google.com with SMTP id u206so5973733wme.1 for ; Tue, 05 Apr 2016 07:08:30 -0700 (PDT) In-Reply-To: <1459865290-10248-1-git-send-email-adrien.mazarguil@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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: ISO C restricts enumerator values to range of `int' Signed-off-by: Adrien Mazarguil --- lib/librte_eal/common/include/rte_memory.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/common/include/rte_memory.h b/lib/librte_eal/common/include/rte_memory.h index f8dbece..09b5b99 100644 --- a/lib/librte_eal/common/include/rte_memory.h +++ b/lib/librte_eal/common/include/rte_memory.h @@ -54,6 +54,7 @@ extern "C" { #include +__extension__ enum rte_page_sizes { RTE_PGSIZE_4K = 1ULL << 12, RTE_PGSIZE_64K = 1ULL << 16, -- 2.1.4