From 450287a272988f21b51c016201b30848096f5059 Mon Sep 17 00:00:00 2001 From: Jaroslaw Pelczar Date: Tue, 29 Aug 2017 12:00:49 +0200 Subject: [PATCH] kdbg_date.c: Fix compilation error on GCC 7 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This symbol is used only in day_of_week() function Fixes following error: kdbg_date.c:76:30: error: ‘g_dayofweek’ defined but not used [-Werror=unused-const-variable=] static FAR const char *const g_dayofweek[] = { Signed-off-by: Jaroslaw Pelczar --- apps/system/utils/kdbg_date.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/system/utils/kdbg_date.c b/apps/system/utils/kdbg_date.c index 682d350..89dbcc2 100644 --- a/apps/system/utils/kdbg_date.c +++ b/apps/system/utils/kdbg_date.c @@ -73,9 +73,11 @@ static FAR const char *const g_datemontab[] = { "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; +#if defined(CONFIG_LIBC_LOCALTIME) || defined(CONFIG_TIME_EXTENDED) static FAR const char *const g_dayofweek[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }; +#endif /**************************************************************************** * Private Functions -- 2.7.4