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 1B60D5599 for ; Tue, 5 Jul 2016 12:45:09 +0200 (CEST) Received: by mail-wm0-f45.google.com with SMTP id f126so132066304wma.1 for ; Tue, 05 Jul 2016 03:45:09 -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=B98Ls2PdxfYzR3dZ3jRhhjAF/jfTVfJYQPlmkeg4HTc2bFtn6ynES+CPAaj5cnHEKy LHWYCrkCJrgJYk0eiolS1y+sXxCc4eoSqTbulnWN/ejDvU6S0Wi7G527MpKlr4U3OrBj EQBaQyAxG6PAZTFvc+ZMa7O6TVvZMz1ofSeEvFr04XnSp2IvPM9nYatt2Z4Nnvql5Xmx u2yUIfxFZHC2mOh7PTE0HvQ9v529Y7KoRgJRRhz4WYH0RxuI58+SVyBn/1reYX1yprxL Exou1fO/FqPuDhYdGtcTgRmTvuX0YHXEhqFI632AndJsBAq+nNG72ZDvGBkKM9ly+g3Y sS8A== 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=ByjBagCpFdWxNTWxqHTlmSAsEEknReHDQN2ToXD9/jOwgdhPpcqMzxYXqN77WPGVS3 C4KiPrBy8Eyjt6yXIT8HwUzQ9rCK/M6POJVHJCcfoQwUY5xIm0Ym+r2FRwuRyvPV4esb E6xZwu3sL/oLazVWB7lahjJgvih8eEuyD6WxzQvF5qkeix9BvTKbatRw3sMWC5jvefUL vJssJYyieiZYBm42fch6U2AB2MxLG7gqFP1QrARIiJh3/V0sZkj+ow0wJnj7S+TL1Kcl uTsttX6pA0sG1GTLlznkEGZFpb/bJGnbRHMsSTA7hegOf0tYx0CRyV9HUAIqyQGdY4QG D3lg== X-Gm-Message-State: ALyK8tKWpwzQMpCSOM+8VNAPL7A8UGPQZa8BXqRLbkGDfGTGQp4eC9ty5UpQ0/YXZ1qTzFt9 X-Received: by 10.194.92.233 with SMTP id cp9mr7750166wjb.125.1467715508743; Tue, 05 Jul 2016 03:45:08 -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 t188sm2359226wma.8.2016.07.05.03.45.07 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 05 Jul 2016 03:45:08 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Date: Tue, 5 Jul 2016 12:44:48 +0200 Message-Id: <0e49a9255b8273f19a4548b011a54414f7b06036.1467715254.git.adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: <1459865290-10248-1-git-send-email-adrien.mazarguil@6wind.com> Subject: [dpdk-dev] [PATCH v2 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: Tue, 05 Jul 2016 10:45:09 -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