kdbg_date.c: Fix compilation error on GCC 7
authorJaroslaw Pelczar <j.pelczar@samsung.com>
Tue, 29 Aug 2017 10:00:49 +0000 (12:00 +0200)
committerPiotr Marcinkiewicz <p.marcinkiew@samsung.com>
Thu, 31 Aug 2017 07:17:39 +0000 (09:17 +0200)
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 <j.pelczar@samsung.com>
apps/system/utils/kdbg_date.c

index 682d350..89dbcc2 100644 (file)
@@ -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