Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1npCS4-00081c-NI for pgsql-hackers@arkaria.postgresql.org; Thu, 12 May 2022 17:18:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1npCS3-0008A6-9G for pgsql-hackers@arkaria.postgresql.org; Thu, 12 May 2022 17:18:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1npCS2-00089x-WB for pgsql-hackers@lists.postgresql.org; Thu, 12 May 2022 17:18:11 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1npCS0-0007s3-Vc for pgsql-hackers@postgresql.org; Thu, 12 May 2022 17:18:10 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 24CHI5Io418905; Thu, 12 May 2022 13:18:05 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@postgresql.org Subject: Re: Declaration fixes In-reply-to: <20220512164513.vaheofqp2q24l65r@alap3.anarazel.de> References: <20220512164513.vaheofqp2q24l65r@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 12 May 2022 09:45:13 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <418903.1652375885.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 12 May 2022 13:18:05 -0400 Message-ID: <418904.1652375885@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > I was experimenting with specifying symbol visiblity for functions expli= citly, > i.e. adding PGDLLIMPORT markers for them, with the goal of getting rid o= f > src/tools/msvc/gendef.pl (and similar AIX stuff). While doing that I com= pared > the set of exported symbols before / after, leading me to find a few > pre-existing "issues". > I think the attached patches are all a good idea and trivial enought tha= t I > think we should apply them now. +1 to all of that. Would the changes you're working on result in getting warnings for these sorts of oversights on mainstream compilers? regards, tom lane