From b159bf0bb24a99c7d3ff1b3855f840add63198e5 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Wed, 11 Oct 2017 21:26:27 -0400 Subject: Cleanup 'unused parameter' warnings, a couple of which are actual coding errors. --- projects/libhal-test/gettimeofday.c | 2 ++ projects/libhal-test/printf.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'projects/libhal-test') diff --git a/projects/libhal-test/gettimeofday.c b/projects/libhal-test/gettimeofday.c index b13485d..f7a87f1 100644 --- a/projects/libhal-test/gettimeofday.c +++ b/projects/libhal-test/gettimeofday.c @@ -56,6 +56,8 @@ int gettimeofday(struct timeval *tv, struct timezone *tz) { uint32_t tick = HAL_GetTick(); /* uptime in ms */ + tz = tz; + tv->tv_sec = tick / 1000; tv->tv_usec = (tick % 1000) * 1000; diff --git a/projects/libhal-test/printf.c b/projects/libhal-test/printf.c index 18feb8d..85af09b 100644 --- a/projects/libhal-test/printf.c +++ b/projects/libhal-test/printf.c @@ -362,6 +362,8 @@ You must write your own putchar() *****************************************************************************/ int vprintf_help(unsigned c, void **ptr) { + ptr = ptr; + putchar(c); return 0 ; } -- cgit v1.2.3