lib: work around forward reference to enum types
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 <adrien.mazarguil@6wind.com>
This commit is contained in:
parent
f04519d809
commit
8480682efb
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user