From 46d3a4b7ec0866071948e24620388aaa567cb3e0 Mon Sep 17 00:00:00 2001 From: Moandor Date: Tue, 9 Mar 2021 02:10:07 +0800 Subject: [PATCH] [spinel] fix missing prototype warning (#6245) This function was defined without any declaration before it, causing build error when compiled with -Werror=missing-prototypes. --- src/lib/spinel/spinel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/spinel/spinel.c b/src/lib/spinel/spinel.c index 78213f164..04dc471f5 100644 --- a/src/lib/spinel/spinel.c +++ b/src/lib/spinel/spinel.c @@ -1158,7 +1158,7 @@ struct spinel_cstr (uint32_t) PREFIX##VALUE, #VALUE \ } -const char *spinel_to_cstr(const struct spinel_cstr *table, uint32_t val) +static const char *spinel_to_cstr(const struct spinel_cstr *table, uint32_t val) { int i;