From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 84B055686 for ; Thu, 7 Jul 2016 17:50:11 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id z126so153949008wme.0 for ; Thu, 07 Jul 2016 08:50:11 -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=FwhDJS6BifL9MuEtd1wcVSv+SgnyppwlkXm0UGsGpBbQ7xJUpaIwX/GEdKhBaYRG9f YPa0+x63zNPXPa8Tq98JPnvjgfvVRl7/2woyBFq02A2d+x9H4MR4FTW1dyyEU/8fS8jm E2Z6wA+UjUyOF3MpQxEt0q8OtlL6kIiVrD9lywisIuYi+8xJV6JZ+FAE4P7nzgsxA8dM 1zNjqb4Y3n5NQGZIdvg6bdnb0PfK7NRNL2kpCzSlpnlW3W7pcGmVaDty/RuXqmuhF2cT rJE7iGL7okjHfoVaFNKZU9iC4eYIHfd6titNnsjKurlnN1uwhzicfscNibGQDoeZNbzd GlIg== 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=TsQJpd7VTvi9sJylEigYy9e/k2Z8GV8VstZ8JUjbPuue2ONcF/XRMtWIrKdxjITLk7 poaerevFAfjdJv4cos8zWDeSSa888Gp+y4cvjzvMnt90txM6WxEs3kjEaLryxMdJ6Qx8 wpKufPz16MtaCTG18L9FkdVDTUPmhwneilkQJ+/mslzrvSbWh6Tu392KpHrusD0DohVV n5i6TlQ9rXwEMgTMxwy2zlRKYD6NZDAig74406nROxTCMt+vZhNir8pBeBE+JY1towdB L33HsTxzJa1qGmAUUN1i+xA92rR6bE4V55mgEUlY8wIfQU7LRALz54+6TUPluMt2ePzT qiwA== X-Gm-Message-State: ALyK8tJDTrJwRqSo8SElCaqicca9USnxUxx/NC7o4YlVsWPX3e7YVbLivRchNc6ruNSWVrt2 X-Received: by 10.28.168.86 with SMTP id r83mr26223025wme.44.1467906611138; Thu, 07 Jul 2016 08:50:11 -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 12sm3898224wmj.19.2016.07.07.08.50.09 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 07 Jul 2016 08:50:10 -0700 (PDT) From: Adrien Mazarguil To: dev@dpdk.org Date: Thu, 7 Jul 2016 17:49:30 +0200 Message-Id: <7906443f65882da719ff309540218feb14147360.1467905467.git.adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v3 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: Thu, 07 Jul 2016 15:50:11 -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