From: | Karol Szkudlarek <karol(at)mikronika(dot)com(dot)pl> |
---|---|
To: | pgsql-odbc(at)postgresql(dot)org |
Subject: | warnings in info.c |
Date: | 2004-07-06 17:51:09 |
Message-ID: | 40EAE68D.6030705@mikronika.com.pl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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.
Attachment | Content-Type | Size |
---|---|---|
info.patch | text/plain | 117 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2004-07-07 07:56:20 | Re: warnings in info.c |
Previous Message | Bruce Momjian | 2004-07-06 15:38:04 | Re: A wanna be |