X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4A8A8D1B18F for ; Tue, 6 Jul 2004 14:51:07 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 79579-09 for ; Tue, 6 Jul 2004 17:51:06 +0000 (GMT) Received: from ro.mikronika.com.pl (ni.mikronika.com.pl [213.17.224.83]) by svr1.postgresql.org (Postfix) with ESMTP id 3B526D1B1AB for ; Tue, 6 Jul 2004 14:51:03 -0300 (ADT) Received: from mikronika.com.pl ([213.17.224.110]) (authenticated bits=0) by ro.mikronika.com.pl (8.12.9/8.12.9/Debian-1) with ESMTP id i66Hp1Tr029609 for ; Tue, 6 Jul 2004 19:51:02 +0200 Message-ID: <40EAE68D.6030705@mikronika.com.pl> Date: Tue, 06 Jul 2004 19:51:09 +0200 From: Karol Szkudlarek Reply-To: karol@mikronika.com.pl Organization: Mikronika User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5 X-Accept-Language: en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: warnings in info.c Content-Type: multipart/mixed; boundary="------------080807030408050506020000" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/32 X-Sequence-Number: 4165 This is a multi-part message in MIME format. --------------080807030408050506020000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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. --------------080807030408050506020000 Content-Type: text/plain; name="info.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="info.patch" 49c49 < #define NULL_IF_NULL(a) ((a) ? (const char*)(a) : "(NULL)") --- > #define NULL_IF_NULL(a) (a ? a : "(NULL)") --------------080807030408050506020000--