From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id 77C165684 for ; Thu, 8 Sep 2016 14:25:33 +0200 (CEST) Received: by mail-wm0-f49.google.com with SMTP id w12so32454015wmf.0 for ; Thu, 08 Sep 2016 05:25:33 -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=aYiOQJRB8AIAdDaL+MjfT0L0OuXtZpiFQX3nFK9U+5U=; b=ac8LwIsgXhddaEBfVybTchp2U1zlY3vpsz6xWlHaQyLQlijaMWyjQmDAX6sYeICTOw 3BEUx1B2mk8PJqF7T1ag8Krlb0XjEykZvSJMUMUBClVIIdhHylBlemm/YfdRrNk4PAiV BDyj3IKPvikzMTbnR5r8X/b5bu7t/dZRPaaNq8u4ehpK27LoWyQa2YirfOLssWDM0B9W TxIQhL/Qp5F2OHAoPgIwKPjayHiKTfezcXxmMXyqSHgGKjggvTryj6ba2uCYh5X1ZnYL 4DtW2iFWU+PXPXazPYVJRS5VgfTbQAx5ln1XmLwuMGZM6MZBzdM0mbUHcKrct2nHDX3G iBXg== 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=aYiOQJRB8AIAdDaL+MjfT0L0OuXtZpiFQX3nFK9U+5U=; b=V+/V3mOFxy2JeS7X1GQYEAJ37mzD1PuQucwQUQ/y2lkvAWelrsy8affZXIudqt5LOL UMIM4OXNfZIbtb6IVrc7QXx4jvjYz2RGNyjAQIp57OJicgHg2MpK0R1nnaqw/1Al9kVg xv5Djc6zmARyo8+ZBF1YodE/FQc1QeWoFbJZxrJd99R8dPGwVii7bNCZLnc85kpbGISb C0XEIl5EYFzt9WARy8snG8JOJ66AHnOIgg8tdcfEhbrnGx1XVajv0dj4snktYmeLxyIn G9ig72VFIwoBoM0nkBdXVkKngetYrrUD6F+XibJQ3RlX8wNZvEe8o05u4ijpt6XH/ipM +EqA== X-Gm-Message-State: AE9vXwPubgs5wL1YO4L96eyQHIhZjJ9y561M5yH2m1ahrjfXdxB7WY2c7PwQSrmO7isk06Gb X-Received: by 10.194.161.197 with SMTP id xu5mr39808703wjb.88.1473337532921; Thu, 08 Sep 2016 05:25:32 -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 z4sm9409820wmg.19.2016.09.08.05.25.31 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 08 Sep 2016 05:25:32 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Date: Thu, 8 Sep 2016 14:25:08 +0200 Message-Id: <07ae2859bda091dc80bdcb9b3d60b643e73f0b51.1473331587.git.adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v5 07/10] lib: work around forward reference to enum types 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:33 -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 forbids forward references to `enum' types Signed-off-by: Adrien Mazarguil --- lib/librte_eal/common/include/generic/rte_cpuflags.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/librte_eal/common/include/generic/rte_cpuflags.h b/lib/librte_eal/common/include/generic/rte_cpuflags.h index c1da357..71321f3 100644 --- a/lib/librte_eal/common/include/generic/rte_cpuflags.h +++ b/lib/librte_eal/common/include/generic/rte_cpuflags.h @@ -44,6 +44,7 @@ /** * Enumeration of all CPU features supported */ +__extension__ enum rte_cpu_flag_t; /** @@ -55,6 +56,7 @@ enum rte_cpu_flag_t; * flag name * NULL if flag ID is invalid */ +__extension__ const char * rte_cpu_get_flag_name(enum rte_cpu_flag_t feature); @@ -68,6 +70,7 @@ rte_cpu_get_flag_name(enum rte_cpu_flag_t feature); * 0 if flag is not available * -ENOENT if flag is invalid */ +__extension__ int rte_cpu_get_flag_enabled(enum rte_cpu_flag_t feature); -- 2.1.4