Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id D3CDC9FC16E for ; Fri, 13 Jul 2007 09:27:34 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 11818-07 for ; Fri, 13 Jul 2007 09:27:22 -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 DD8E59FC11F for ; Fri, 13 Jul 2007 09:25:23 -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 l6DCPHQa008775 for ; Fri, 13 Jul 2007 12:25:17 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 <0JL400B01AEAHL00@d1-emea-09.sun.com> (original mail from Zdenek.Kotala@Sun.COM) for pgsql-hackers@postgresql.org; Fri, 13 Jul 2007 13:25:17 +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 <0JL4005W0AI4QG3V@d1-emea-09.sun.com>; Fri, 13 Jul 2007 13:25:17 +0100 (BST) Date: Fri, 13 Jul 2007 14:25:16 +0200 From: Zdenek Kotala Subject: Re: compiler warnings on the buildfarm In-reply-to: <27687.1184290111@sss.pgh.pa.us> To: Tom Lane Cc: Kris Jurka , Stefan Kaltenbrunner , PostgreSQL-development , Gorm.Andersen@Sun.COM Message-id: <46976F2C.4090303@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 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> User-Agent: Thunderbird 2.0.0.0 (X11/20070508) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/381 X-Sequence-Number: 105296 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. > I'd be inclined to just put a "#define > PAM_CONV_PROC_NOT_CONST" in include/port/solaris.h and drive the > function declaration off that. If there's a version dependency > involved then it gets a lot more complicated, and might not be worth > the trouble. Following patch works for me, but I did not test it on other platform. retrieving revision 1.153 diff -r1.153 auth.c 61c61 < &pam_passwd_conv_proc, --- > (int (*)())pam_passwd_conv_proc, Zdenek