From mboxrd@z Thu Jan 1 00:00:00 1970 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) 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=3iK2inx9Ru5xTlfygs2OkhXbHwmXjmWuhkUyv5puApQ=; b=NE2yoY/lGe2hnk9MF54DjYYJ1B98PrBB8pvrKO372cYGW2qu0kcWLJHftu70l+z921 aM+sMMkjw1UNb+7UR6PYXKS6gu0375aGyN3aDGLB0+wg3Dx6XMMrmlOoWfyS/uwWNjdQ NKIsTVU54sVuqO+EJ0qFHhR85ZsdZc78V/R2S9DupsWz3pcfoCyUMPYA+bI2d7lj1UxV GcUZUo/WYMbBYF3rjYxeP4ZhJYu4NrJpIchs19HCtnmOs4FZM90m0Y0rQJrDzrLr+SUJ wCIgFpPpk7gX4T95qywXFLbQzp3KdHPnEG8r0aKJfj2voBrWsscMQhYQZj/1Ksoasnjg n3HQ== 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=3iK2inx9Ru5xTlfygs2OkhXbHwmXjmWuhkUyv5puApQ=; b=PDWJkGz6HoEvhpI30UiZsES4MjmJO8rRA/K7jbFilXB2VgAwNJk7YFII/szH+BKjUB 2IPaG2tAVcdIPystHBirvSnEEeF5UOlVCwp6wlGv+cEgLPsvIJ+VRJYz9OxsCt/PGKSq prBpiDOqgQe+3sIhOGLt/mSa4udoJ+c2P/vf4emm3TWTRP+uHI1n4WqBkxU1cy7w5bay VQ+qe1eSgu5CuAn0l2/EG5/qjkHXGnAINNa73s/TUsu2sHtJhJBNHPCn9MG9/ydfOAwL RLdGN0MWOvsqO8iz+JTdkuB2gRfvH5oRw+RlylGN1L4WgEa/XlU1xThWOCnjPQ0umSPp CSZw== X-Gm-Message-State: AD7BkJJzI7euCM8oR44plsLtvBSLLPSIpf0POL/DBFA0xImPxu9nWwa6OpclLz4VbLfp4Hlu X-Received: by 10.28.170.137 with SMTP id t131mr18830525wme.32.1459865310347; Tue, 05 Apr 2016 07:08:30 -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 cb2sm34921663wjc.16.2016.04.05.07.08.29 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Apr 2016 07:08:29 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Cc: Bruce Richardson , Thomas Monjalon Date: Tue, 5 Apr 2016 16:08:02 +0200 Message-Id: <1459865290-10248-3-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 02/10] lib: add extension keyword to large enum values 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:30 -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: 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