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 A2B564CE4 for ; Thu, 7 Jul 2016 17:49:49 +0200 (CEST) Received: by mail-wm0-f48.google.com with SMTP id z126so153935776wme.0 for ; Thu, 07 Jul 2016 08:49:49 -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=srrkIoXNWOSXoi2OpQRgWG2H/nYolXNnGApAIBWrI6U=; b=ETv5d0EVUKYfSbHq6NmJc064QE2IANc89rOWz/TRsKmJh5qzUDr9Pl0Tn7Q3v8saNt vxCgt57yWL6kgshDC2duuRQI6n+yBHDgmFINV34GS+6crd7mPOxSKCreoK3MC2icgPI2 QDyFnrDM7ciiD79yQpW1q9DRrOtAB7MCwd4pE5F/ITWcDA9XifG0FExBK9qC6WtrKSAw noodRGkaLAZ0RlvQwDXjO3YmeeCc3D6plD8L1XSlbrlGT6rCIcGII/yL5rBDpNY0fwAl J6ngRSS6KVlP0y87rrUPrGp/EDeUmQwnBf1saBTZ4I2SJOPJ5nUMYA2fD02wV3U6Nxd3 WM8Q== 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=srrkIoXNWOSXoi2OpQRgWG2H/nYolXNnGApAIBWrI6U=; b=W7FvU+nViZcXkaJN0JfKBbgwF5aEJ8/brDGge0xlK497PwzAtRAEM82/XXgok0X9Hb lCVjDG8GHye7Ld0TwbuPLAkTPlt6zLvEZTHO6xAHLKxhkT1JeR84hA81eGafmrP1SHuD 3BdM2n6JJ5Nm35Eu266k4ht4yXIjFw1t8OofQONNsG3A0dJm7WcC/lliSD8PVIOxCPYn A9ZgCU3yBTrUBD5R9WfOYklDAbB+bp9029pbEufsl7sBsVy6btEjJliCqP1FkAxazzMt IZsoFnCfpoHPurvnV0px9VtUVP54K2YZfNbdXdKiu5CFxkwdr4mCVBWjerURG5J4KCre XkfQ== X-Gm-Message-State: ALyK8tLfzjMPhyJyLhgdciRPcKranNHU4TUBnSF9ehPw5ykkbbpuqpfiM++eZsO49gWG4e6T X-Received: by 10.194.105.97 with SMTP id gl1mr783240wjb.131.1467906589308; Thu, 07 Jul 2016 08:49:49 -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 bc9sm5531717wjc.45.2016.07.07.08.49.48 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 07 Jul 2016 08:49:48 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Date: Thu, 7 Jul 2016 17:49:24 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v3 02/11] lib: work around 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: Thu, 07 Jul 2016 15:49:49 -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 0661109..6a2b3f1 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