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 3AD2137A6 for ; Tue, 5 Apr 2016 16:08:43 +0200 (CEST) Received: by mail-wm0-f41.google.com with SMTP id u206so5982566wme.1 for ; Tue, 05 Apr 2016 07:08:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=aYiOQJRB8AIAdDaL+MjfT0L0OuXtZpiFQX3nFK9U+5U=; b=h8rFwEa0C/4MIdRBLAR44gohBRVB9OfUwYXk7shz8cieYIJtbcrCeO+iR0zS+n+V7d I73Ky+2bBOKS0PwtH8kkN+6xG0uKguyphnwHlMTqCrVd0gdMYUQrRfWyAgMjwqgwJO3C Dpi7f2XWPv2vSkDGBz5spShkEtQRi2OnSxBv7+l88F1urAgC4mURvWInGDwn3NQuRARL ba1qpibpFlj6WshJIfR6eooPQjiJKZbPeBnK92hXTIFucjG23da/sRIKRzgm3YZC68SP DMyPzf9ONlw4zhdQqMA+9DKr9hQ6pp6TkwVoh5+Y3JSnKdJ7t+O9fpQnAveELT658wac wqzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=aYiOQJRB8AIAdDaL+MjfT0L0OuXtZpiFQX3nFK9U+5U=; b=DvsCyex92LR/JcBE2CKTDEGQUhFUjXPm9GNrZExv9rlOUovToMdhflCCfJIsEBgfj6 B5+6egn5Waehu2IgsbCiTlI6cM+O9pQ3Pe8o2QAAblwZYAprH6E/fg4taU4w6H2aMENU 3Hz/2fusRyMDGb8ju4kw29Bc6jOIDS3G7DMEPORmIVe8CnAqq1O+uM2/hjtWye93GGFh NW7eZyW+UVvd1Jqw0lYXdzX8RgiERv/wtdsXCh4ZjiBhBL2HK/RDyN7lAsf4zmtccV3V w/uw94cXez1Z1k+CKG4r/q4uswwgODJ8ccWBE+71ArsrkBKIKePk9xPHtPsOkRdgVB/K Fj2Q== X-Gm-Message-State: AD7BkJIxi8P+roByo5QeO9yxgzmR9RZPiiAgcDSmg2riTtrZLOMA3sGM9OdpKN389qNmZn/L X-Received: by 10.28.132.17 with SMTP id g17mr18524420wmd.63.1459865323118; Tue, 05 Apr 2016 07:08: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 b8sm34860470wjf.9.2016.04.05.07.08.42 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Apr 2016 07:08:42 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Cc: Bruce Richardson , Thomas Monjalon Date: Tue, 5 Apr 2016 16:08:08 +0200 Message-Id: <1459865290-10248-9-git-send-email-adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1459865290-10248-1-git-send-email-adrien.mazarguil@6wind.com> References: <1459865290-10248-1-git-send-email-adrien.mazarguil@6wind.com> Subject: [dpdk-dev] [PATCH 08/10] lib: add extension keyword to 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 Apr 2016 14:08: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