diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2018-08-08 11:41:58 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2018-08-08 11:50:19 +0300 |
commit | 2d87d95f12bbbb8bff611c8a19b943b9ebedb1fd (patch) | |
tree | f59aa2e3271c3cf7baa629e1cedc567ef46526de /newlib/libc/time | |
parent | 5ace9004d9b982ba8887df41139295792c130020 (diff) |
newlib: fix various gcc warnings
* unused variables
* potentially used uninitialized
* suggested bracketing
* misleading indentation
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/time')
-rw-r--r-- | newlib/libc/time/strftime.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/newlib/libc/time/strftime.c b/newlib/libc/time/strftime.c index 0cb31238a..429ae99ac 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. */ |