From 299ef2e5fe89db4dafc1b039fee1cec030d3e701 Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Wed, 20 May 2020 15:10:59 +0200 Subject: [PATCH] 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 --- subsys/cpp/cpp_init_array.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subsys/cpp/cpp_init_array.c b/subsys/cpp/cpp_init_array.c index 12f8d4d5b9e..d0575adada2 100644 --- a/subsys/cpp/cpp_init_array.c +++ b/subsys/cpp/cpp_init_array.c @@ -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