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:
Emil Gydesen 2020-05-20 15:10:59 +02:00 committed by Carles Cufí
commit 299ef2e5fe

View file

@ -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