Silence some compiler warnings.
authorHiroshi Inoue <h-inoue@dream.email.ne.jp>
Fri, 4 Oct 2019 05:51:32 +0000 (14:51 +0900)
committerHiroshi Inoue <h-inoue@dream.email.ne.jp>
Fri, 4 Oct 2019 05:57:11 +0000 (14:57 +0900)
convert.c
test/src/result-conversions-test.c

index 026b3025223d9b4617f915f0553f357424bddc9b..ce0ee46fddbd566a6b6439d4a9f466eca6bbfa0c 100644 (file)
--- 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] == '%')
        {
index 4f0abf482fcb0575823dbcdb44de19f0f5e840c3..bf69ebd7a5662d15e4b7c443284b12b84565cb0a 100644 (file)
@@ -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);