cpp: 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
adc5fab141
commit
299ef2e5fe
1 changed files with 2 additions and 2 deletions
|
@ -11,8 +11,8 @@
|
|||
|
||||
typedef void (*func_ptr)(void);
|
||||
|
||||
extern func_ptr __init_array_start[0];
|
||||
extern func_ptr __init_array_end[0];
|
||||
extern func_ptr __init_array_start[];
|
||||
extern func_ptr __init_array_end[];
|
||||
|
||||
/**
|
||||
* @brief Execute initialization routines referenced in .init_array section
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue