logging: Fixed compile warning with extern array declaration
The extern array declaration of size 0 gives a warning when compiling with GCC. Updated to use [] rather than [0]. Signed-off-by: Emil Gydesen <emil_gydesen@bose.com>
This commit is contained in:
parent
fd17797f66
commit
bf414c5559
2 changed files with 6 additions and 6 deletions
|
@ -62,8 +62,8 @@ struct log_backend {
|
|||
bool autostart;
|
||||
};
|
||||
|
||||
extern const struct log_backend __log_backends_start[0];
|
||||
extern const struct log_backend __log_backends_end[0];
|
||||
extern const struct log_backend __log_backends_start[];
|
||||
extern const struct log_backend __log_backends_end[];
|
||||
|
||||
/**
|
||||
* @brief Macro for creating a logger backend instance.
|
||||
|
|
|
@ -413,8 +413,8 @@ static inline char z_log_minimal_level_to_char(int level)
|
|||
*/
|
||||
#define LOG_LEVEL_INTERNAL_RAW_STRING LOG_LEVEL_NONE
|
||||
|
||||
extern struct log_source_const_data __log_const_start[0];
|
||||
extern struct log_source_const_data __log_const_end[0];
|
||||
extern struct log_source_const_data __log_const_start[];
|
||||
extern struct log_source_const_data __log_const_end[];
|
||||
|
||||
/** @brief Get name of the log source.
|
||||
*
|
||||
|
@ -456,8 +456,8 @@ static inline uint32_t log_sources_count(void)
|
|||
return log_const_source_id(__log_const_end);
|
||||
}
|
||||
|
||||
extern struct log_source_dynamic_data __log_dynamic_start[0];
|
||||
extern struct log_source_dynamic_data __log_dynamic_end[0];
|
||||
extern struct log_source_dynamic_data __log_dynamic_start[];
|
||||
extern struct log_source_dynamic_data __log_dynamic_end[];
|
||||
|
||||
/** @brief Creates name of variable and section for runtime log data.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue