From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id 43795569C for ; Tue, 5 Jul 2016 12:45:25 +0200 (CEST) Received: by mail-wm0-f44.google.com with SMTP id f126so132074944wma.1 for ; Tue, 05 Jul 2016 03:45:25 -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=X1BUt8yJsJYcylNW0NgAszChcY2qJUavoeRTXWdtdJrvtCxGwz2SwXfRyBj0gROAje UONbdEZqXUD9rU7zZ1w5heAFlBxwW/+YjfktvHjtbgu1Dq7TxTLCRCkEQyiCnBO3KXGM L2gEKJU3ieHowPTje1tNg9JI4n6PF/dcpt4Mv2m58jJ1dpMFxm0TuOYw/OWHtsQH+KQU MagftXsbTcw3rXNeCoIH1z4YcgdSJTlpVbc11zMLwltLtidWvY/HmIKvxTAIxcKdroJT t79Zgexat/X9QgCm14JG4CpDTAIvML8jVYbLCiWiNiOr14D6ZxwzY63ApQbm8MyJSzCg XpYg== 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=cEbh7RgcOtAPsUxOpYSD+OdAZw3H8wjejBQ011dTlDWHQPu9lHmfHrF95ToGqWG75a DpLln/hf6yHZxuNniAxgmCqKbQbtG3JPzsLDua3aHXtd5fSJaMMnTveIzxIsKF32QwLt QVP2PZitXkb6b/zBJp1xkoOF//wVGYL1pNyWpL/bQAnh2AbwIZggtKge4Ly44+8NPFE4 OKHNnjssBUYDSXUejbYu3noZeNCtn/KZoOZVt51jtGffjkjBXcyNmAzfIFm8ULQrvKxF VUCq+DhpnnJHbNMgGPcSTkoTDpfgrmk0LFHEjVRTL8d9N1QTsp1tInQDZiJ1QZLNpTH8 lM0w== X-Gm-Message-State: ALyK8tL/A6LtaZnfShBOmub2CI2jKUMADLMLgH4/rz0oazOuj3zObhZbZrCeNkwCReiiItRH X-Received: by 10.28.23.17 with SMTP id 17mr14500298wmx.21.1467715524886; Tue, 05 Jul 2016 03:45:24 -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 wj2sm3195790wjb.24.2016.07.05.03.45.24 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 05 Jul 2016 03:45:24 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Date: Tue, 5 Jul 2016 12:44:54 +0200 Message-Id: <79f7574a2421e3f63badbdd0a1115d9704a5b876.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 08/11] 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: Tue, 05 Jul 2016 10:45:25 -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