From 2d87d95f12bbbb8bff611c8a19b943b9ebedb1fd Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 8 Aug 2018 10:41:58 +0200 Subject: newlib: fix various gcc warnings * unused variables * potentially used uninitialized * suggested bracketing * misleading indentation Signed-off-by: Corinna Vinschen --- newlib/libc/time/strftime.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'newlib/libc/time') diff --git a/newlib/libc/time/strftime.c b/newlib/libc/time/strftime.c index 0cb3123..429ae99 100644 --- a/newlib/libc/time/strftime.c +++ b/newlib/libc/time/strftime.c @@ -339,9 +339,6 @@ locale, hard-coding the "C" locale settings. # error "YEAR_BASE < 0" #endif -static const int dname_len[7] = -{6, 6, 7, 9, 8, 6, 8}; - /* Using the tm_year, tm_wday, and tm_yday components of TIM_P, return -1, 0, or 1 as the adjustment to add to the year for the ISO week numbering used in "%g%G%V", avoiding overflow. */ -- cgit v1.1