warnings in info.c - Mailing list pgsql-odbc

From Karol Szkudlarek
Subject warnings in info.c
Date
Msg-id 40EAE68D.6030705@mikronika.com.pl
Whole thread Raw
List pgsql-odbc
Hi!

I've looked at the warnings in info.c. The reason
of the warnings was macro NULL_IF_NULL defined in info.c:49.

I added cast like the following:

diff -r1.108 info.c
49c49
< #define       NULL_IF_NULL(a) (a ? a : "(NULL)")
---
 > #define       NULL_IF_NULL(a) ((a) ? (const char*)(a) : "(NULL)")


Consider whether is correct.

Greets, Karol

ps.

I checked warnings on both 32 and 64 arch.
49c49
< #define    NULL_IF_NULL(a) ((a) ? (const char*)(a) : "(NULL)")
---
> #define    NULL_IF_NULL(a) (a ? a : "(NULL)")

pgsql-odbc by date:

Previous
From: markw@mohawksoft.com
Date:
Subject: Re: ODBC Developers
Next
From: "Dave Page"
Date:
Subject: Re: warnings in info.c