From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 18113376C for ; Wed, 13 Jul 2016 15:03:27 +0200 (CEST) Received: by mail-wm0-f42.google.com with SMTP id i5so68182177wmg.0 for ; Wed, 13 Jul 2016 06:03:27 -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=kd5P4i4DYBD09qVOhekYlDaimhWQfxm+QNQ8WBkD28Y5Zr6GIFEfuICmTIXQwkS5Bh 3VApDoiYTTMDM6PeqVY5FSWrjQyaLix+44FrH11xIk4HI6U1ZI7+E0pKdWu7G+J2XGUS 1JoKojz6wsi+pkg0Sw4Z01XUnf8ymbA7JsTP+rr+VOrmeZH0j0e6Dnn6Xa2vcdlOg5FO Y8M7kNaKerbH+D7n6OwsxGvvIN/Yn2mppZloj8pAKxVyqANCqbgAnsDzXw2JtBCepfsV eIhgbMaR6WwuHQ7DGAu5+kBEJwkPmOdUbZ8jg8UFjDOGpAoLYpP6S5xb1D4qtg/aPRMv mngw== 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=JRB4wlA5O5lmDsGQkvjoKJAnt/voREGew5xsktECleDwBQjNVely2NyNd1ypRuDB5T Tc8EU/AQXwO03CeUe9z/lpju8WUCdqkG1+SREL4yZ/7vn7+8Us8aQELt3VG4/Lfuh529 c/n+xlAY3vAruVxOHoiP8XTDWs8tQrlmtsPFxCT7bmL89MPYVm4vBTjkU+K8b8YL4X8i YiXIjA3SfzUV9V8lAjoFOn1U1zQgcnLMDtd1QeF2zeTuHQk9uPzbENf7A37PGy26AcKK 5dhuB4haRqwR0Fjn1/DJI9XS2gLj9thnWXpdBdhN0lkh35PylW8CdaF0gat2zehYPTwc tMUA== X-Gm-Message-State: ALyK8tKsazd17sOMY60tXw4lvZFf7U0YOUsGiFoEp0Q3091/FAOm/A2Fe+0knUf42mtkDJ0W X-Received: by 10.28.101.5 with SMTP id z5mr15855852wmb.9.1468415006650; Wed, 13 Jul 2016 06:03:26 -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 e16sm14535618wma.12.2016.07.13.06.03.25 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 13 Jul 2016 06:03:26 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Date: Wed, 13 Jul 2016 15:02:39 +0200 Message-Id: <5328c427085cdf8a2f5a4670f4e88d67f26714a7.1468413397.git.adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v4 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: Wed, 13 Jul 2016 13:03:27 -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