From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id 735735398 for ; Wed, 13 Jul 2016 15:03:43 +0200 (CEST) Received: by mail-wm0-f41.google.com with SMTP id f126so28190891wma.1 for ; Wed, 13 Jul 2016 06:03:43 -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=Fqq7bcOTOCN2i8/GYU771dBouWv/4x+/0ZBpU/RRFWVHQ1LHTbO4jeHvupk81WGdrI XfKPM8gmd90S5+0Wj75UL43SwfNhvF9mb+vkIYQp9lV0UCG5jzskIw4jCzUnaWt9NiIZ Q8fkAgx1Djd9eSeKuTptSzsGFTLolLKkl2Q3ZM6/qAX2m8oQxQoSb75uSVD43pMtA5u9 2xBKpeFoHzRrbT8BsQNnKdhcryxZm5YLkNbS74cQ8KA8wn6xqXL1Bd3CWa7r/cm6cjW7 KF8QwXDxif3F46H4k/cbUWtaqO6d8Q7Cd5Nj0GxhcUyxcikZf3U2+6V7eHuUh+w8HjCf 8Z6w== 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=Q6RjWIQilL/zxXko8X71mw2N2Fp9gzx5fupzQZeiR1At/ifOBB5NAIcMAFf3BBeU2X A61F4TU56/XQzjTJShfwpISHTM3PP582NAtbwQK/QApsV8YvWSSW8wZptikvsRNJiuP7 0TqbpAmeXQuynhWgucbvz4IfsatWaZH+P7WQjfk5NbIwegR3rLYydtjClTlwbErBqxpk FN3Z1NwurBU1WCkxjjGWYbBBAlImwZx2O/gOsO5cm0VDRS03cZ2T4M4PeCWK5VHcTl2Q jn0fP84SUH3wZ6yHkB4x3NO9GOsOt1t8oBw4Tefx+yIbvwdv6NlIJeb6URU0NwxOWMdr DQtg== X-Gm-Message-State: ALyK8tLYIdo5cJ8Cv+xkc+7Udi6HyVC3mDwprrw8DPMVF4IExqp/+cxRvow5LMxVm5qhGYLf X-Received: by 10.194.140.204 with SMTP id ri12mr918052wjb.146.1468415023023; Wed, 13 Jul 2016 06:03:43 -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 d64sm859184wmc.22.2016.07.13.06.03.41 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 13 Jul 2016 06:03:41 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Date: Wed, 13 Jul 2016 15:02:44 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v4 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: Wed, 13 Jul 2016 13:03:43 -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