From: Adrien Mazarguil Date: Thu, 8 Sep 2016 12:25:03 +0000 (+0200) Subject: lib: work around large enum values X-Git-Tag: spdx-start~6013 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=517b89b090547478e8e9885f55170b7ef14baab9;p=dpdk.git lib: work around large enum values 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 --- diff --git a/lib/librte_eal/common/include/rte_memory.h b/lib/librte_eal/common/include/rte_memory.h index d9e8c21340..12e0ebb077 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,