pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
warnings in info.c
2+ messages / 2 participants
[nested] [flat]

* warnings in info.c
@ 2004-07-06 17:51 Karol Szkudlarek <karol@mikronika.com.pl>
  0 siblings, 0 replies; 2+ messages in thread

From: Karol Szkudlarek @ 2004-07-06 17:51 UTC (permalink / raw)
  To: 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.

Attachments:

info.patch (text/plain, 116B) download 49c49 < #define NULL_IF_NULL(a) ((a) ? (const char*)(a) : "(NULL)") --- > #define NULL_IF_NULL(a) (a ? a : "(NULL)")
^ permalink raw reply [nested|flat] 2+ messages in thread

* Re: warnings in info.c
@ 2004-07-07 07:56 Dave Page <dpage@vale-housing.co.uk>
  0 siblings, 0 replies; 2+ messages in thread

From: Dave Page @ 2004-07-07 07:56 UTC (permalink / raw)
  To: karol@mikronika.com.pl; pgsql-odbc

 

> -----Original Message-----
> From: pgsql-odbc-owner@postgresql.org 
> [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Karol Szkudlarek
> Sent: 06 July 2004 18:51
> To: pgsql-odbc@postgresql.org
> Subject: [ODBC] warnings in info.c
> 
> 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.

Looks OK to me - patch applied, thanks!

I also removed an unused variable which gets rid of another warning...

Regards, Dave




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2004-07-07 07:56 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-07-06 17:51 warnings in info.c Karol Szkudlarek <karol@mikronika.com.pl>
2004-07-07 07:56 Re: warnings in info.c Dave Page <dpage@vale-housing.co.uk>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox