From 6355cb743ce9b780bdfd065b47b9413bcdfd709a Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Fri, 4 Oct 2019 14:51:32 +0900 Subject: [PATCH] Silence some compiler warnings. --- convert.c | 2 +- test/src/result-conversions-test.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/convert.c b/convert.c index 026b302..ce0ee46 100644 --- a/convert.c +++ b/convert.c @@ -5381,7 +5381,7 @@ mapFunction(const char *func, int param_count, const char *keyword) int i; const char *p1, *p2; - for (i = 0; p1 = mapFuncs[i].odbc_name; i++) + for (i = 0; (p1 = mapFuncs[i].odbc_name) != NULL; i++) { if (p1[0] == '%') { diff --git a/test/src/result-conversions-test.c b/test/src/result-conversions-test.c index 4f0abf4..bf69ebd 100644 --- a/test/src/result-conversions-test.c +++ b/test/src/result-conversions-test.c @@ -249,10 +249,8 @@ print_sql_type(int sql_c_type, void *buf, SQLLEN strlen_or_ind, int use_time) if (use_time != 0) { time_t t = 0; - struct tm *tim; t = time(NULL); - tim = localtime(&t); } else printf("h: %d m: %u s: %u", ts->hour, ts->minute, ts->second); -- 2.39.5