Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 7B3A59FC066 for ; Fri, 13 Jul 2007 10:35:34 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 94407-09 for ; Fri, 13 Jul 2007 10:35:19 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from gmp-ea-fw-1.sun.com (gmp-ea-fw-1.sun.com [192.18.1.36]) by postgresql.org (Postfix) with ESMTP id 0E4A99FB8BD for ; Fri, 13 Jul 2007 10:35:25 -0300 (ADT) Received: from d1-emea-09.sun.com ([192.18.2.119]) by gmp-ea-fw-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l6DDZJbV017490 for ; Fri, 13 Jul 2007 13:35:19 GMT Received: from conversion-daemon.d1-emea-09.sun.com by d1-emea-09.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0JL400701DPJ9F00@d1-emea-09.sun.com> (original mail from Zdenek.Kotala@Sun.COM) for pgsql-hackers@postgresql.org; Fri, 13 Jul 2007 14:35:19 +0100 (BST) Received: from [129.150.120.147] by d1-emea-09.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0JL400K3WDQQ3162@d1-emea-09.sun.com>; Fri, 13 Jul 2007 14:35:15 +0100 (BST) Date: Fri, 13 Jul 2007 15:35:14 +0200 From: Zdenek Kotala Subject: Re: compiler warnings on the buildfarm In-reply-to: To: Kris Jurka Cc: Tom Lane , Stefan Kaltenbrunner , PostgreSQL-development , Gorm.Andersen@Sun.COM Message-id: <46977F92.7000000@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=US-ASCII Content-transfer-encoding: 7BIT References: <46962BBD.5000108@kaltenbrunner.cc> <17428.1184249229@sss.pgh.pa.us> <469653BA.2040004@kaltenbrunner.cc> <20917.1184257896@sss.pgh.pa.us> <46969A2E.2020608@kaltenbrunner.cc> <16415.1184285944@sss.pgh.pa.us> <27687.1184290111@sss.pgh.pa.us> <46976F2C.4090303@sun.com> User-Agent: Thunderbird 2.0.0.0 (X11/20070508) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/384 X-Sequence-Number: 105299 Kris Jurka wrote: > > > On Fri, 13 Jul 2007, Zdenek Kotala wrote: > >> Tom Lane wrote: >>> Kris Jurka writes: >>>> So pam_message ** isn't const. >>> >>> Ah, thanks. I see luna_moth is giving the same warning, so it's still >>> not const in Solaris 11 either. >>> >>> Is it worth working around this? It's strictly cosmetic AFAICS. >>> >>> The main issue in my mind would be how to determine whether to use >>> const or not. If all Solaris releases are like this, and can be >>> expected to stay that way, >> >> I think yes. It is defined as X/Open standard says. >> > > Not according to the link you sent earlier. My reading says that > Solaris has it defined wrong and pg has it right. If I look there http://www.opengroup.org/onlinepubs/008329799/chap5.htm#tagcjh_06 in "Call Back Information" section. The structure is defined as struct pam_conv{ int (*conv) (int, struct pam_message **, struct pam_response **, void *); void *appdata_ptr; }; I don't see any "const" keyword there. Zdenek