psqlodbc.git / summary / log / commit / refs
commit 6355cb743ce9b780bdfd065b47b9413bcdfd709a
Author: Hiroshi Inoue <h-inoue@dream.email.ne.jp>
Date: Fri Oct 04 05:51:32 2019 +0000
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 026b3025..ce0ee46f 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 4f0abf48..bf69ebd7 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);
[parent: 830f2a29e6d5]