From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id CEE652BB5 for ; Thu, 8 Sep 2016 14:25:22 +0200 (CEST) Received: by mail-wm0-f53.google.com with SMTP id w12so32445601wmf.0 for ; Thu, 08 Sep 2016 05:25:22 -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=rw2Yf9RJ6Cg0/ZS0aevUmUBTqyZ20Lf3dcymG7OZgCw=; b=frqORZlNY08uD9rA9R+AfXeKuYW4knK9I/HxCfVWam1eNTjpYpXF+X8Z/AxGHqjRJs DHI2N/ofYVCuAhwdSalhUqhACv53LhAj3EjUkdFXr1m0ps0A/BN1QSFD689TR+Zu/k5F 8xYwwh7OLzTP6Vs8uRCqwx4iu/3kuMPpNuqD9daBQ0miczO7tzEsAT+S1Pwqs2j9yHrC tt/mraz6mA3NDtDmptsX5pFhFVIOo5OefPIc4TioUhW2HB+A/J3NNlFtSzZJ/eOPT/aS Tt721XEamwtVXZWKVNzle/ZWUiLeDr2vvav8wD9ZWqo2Q+xGjImpRk1OtV3cXwXSIAJi aLog== 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=rw2Yf9RJ6Cg0/ZS0aevUmUBTqyZ20Lf3dcymG7OZgCw=; b=IwGD8Ai1tWMFXNRdZ2Vp590Y17b3zbkpVpNvkwGiLA98y9v3t1Ou3RESI3OrQMJWcw zxyDMXpqamgJOqY5uepr52Owf/1QTMHhAEzVAuAAOk2OO0SyQ0ba+KKG/o9ECoL7jJRS uOLbfMGCJcT7J+wGFxHc+JbvNHS+/j9ZExe+wdWNanr1nUuwT4ZjBRMDFiXqdjbAGnOJ uRBqBeYrNeO6R3rcx9zWDIMQhUFJOAQVlpU3Bd02Rt2J5UmJFQW7j3uW8mZFMGtVyJh2 lIMBwG4vCtYnPdwjLuWMIaj4kBG8PS9R3lYNKV+uNx2W97Sqnkz+8P+JqcDlX4z9sj0q vz2Q== X-Gm-Message-State: AE9vXwPlgu+HqUjB0DIHnw9IVy3EvQgu4U3k4PISR+AI8iqTumYncHQ+sVuHbfJlYuGJHtd2 X-Received: by 10.28.107.24 with SMTP id g24mr9171149wmc.12.1473337522407; Thu, 08 Sep 2016 05:25:22 -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 12sm20622460wjx.42.2016.09.08.05.25.21 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 08 Sep 2016 05:25:21 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Date: Thu, 8 Sep 2016 14:25:03 +0200 Message-Id: <1ea3630f96a78c6f750d176e7dd224be3274a3ce.1473331587.git.adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v5 02/10] 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, 08 Sep 2016 12:25:23 -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 d9e8c21..12e0ebb 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