pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karol Szkudlarek <karol@mikronika.com.pl>
To: pgsql-odbc@postgresql.org
Subject: warnings in info.c
Date: Tue, 06 Jul 2004 19:51:09 +0200
Message-ID: <40EAE68D.6030705@mikronika.com.pl> (raw)

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)")

view thread (2+ messages)  latest in thread

Message-ID: <40EAE68D.6030705@mikronika.com.pl>
Permalink:  ../40EAE68D.6030705@mikronika.com.pl/
Also on:    postgresql.org/message-id/40EAE68D.6030705@mikronika.com.pl

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: karol@mikronika.com.pl
  Subject: Re: warnings in info.c
  In-Reply-To: <40EAE68D.6030705@mikronika.com.pl>
  References: <40EAE68D.6030705@mikronika.com.pl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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