warnings in info.c

Поиск
Список
Период
Сортировка
От Karol Szkudlarek
Тема warnings in info.c
Дата
Msg-id 40EAE68D.6030705@mikronika.com.pl
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: markw@mohawksoft.com
Дата:
Сообщение: Re: ODBC Developers
Следующее
От: "Dave Page"
Дата:
Сообщение: Re: warnings in info.c