From d84b11f1421786ed1e315c7b8c995af0a626884c Mon Sep 17 00:00:00 2001 From: Colin Patrick Mccabe Date: Sat, 12 Jan 2013 11:38:37 -0800 Subject: [PATCH] simple_time.c: fix set-but-not-used warning Signed-off-by: Colin McCabe --- simple_time.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/simple_time.c b/simple_time.c index 5906409..9bede48 100644 --- a/simple_time.c +++ b/simple_time.c @@ -24,13 +24,11 @@ int main(void) { while (1) { char str[27]; - size_t len; time_t t = time(NULL); struct tm *tm = localtime(&t); str[0] = '\0'; asctime_r(tm, str); - len = strlen(str); printf("\r"); strip_newlines(str); printf("%s", str); -- 1.6.6.rc1.39.g9a42