From: Colin Patrick Mccabe Date: Sat, 12 Jan 2013 19:38:37 +0000 (-0800) Subject: simple_time.c: fix set-but-not-used warning X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d84b11f1421786ed1e315c7b8c995af0a626884c;p=cmccabe-bin simple_time.c: fix set-but-not-used warning Signed-off-by: Colin McCabe --- 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);