Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fqIEL-0007vb-Cp for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Aug 2018 13:22:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fqIEJ-00016I-QW for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Aug 2018 13:22:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fqIEJ-00015n-Fk for pgsql-hackers@lists.postgresql.org; Thu, 16 Aug 2018 13:22:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fqIEG-0004yG-Se for pgsql-hackers@postgresql.org; Thu, 16 Aug 2018 13:22:22 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w7GDME1M008023; Thu, 16 Aug 2018 09:22:14 -0400 From: Tom Lane To: Andres Freund cc: Peter Eisentraut , pgsql-hackers Subject: Re: remove ancient pre-dlopen dynloader code In-reply-to: <20180816083107.2f5gxbvlsgvnuit4@alap3.anarazel.de> References: <3e3c7552-978b-486a-1a4a-326ee31d0545@2ndquadrant.com> <20180809123059.32g25qn7dgd33iyq@alap3.anarazel.de> <26726.1533823423@sss.pgh.pa.us> <20180816083107.2f5gxbvlsgvnuit4@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 16 Aug 2018 01:31:07 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8021.1534425734.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 16 Aug 2018 09:22:14 -0400 Message-ID: <8022.1534425734@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > This now generates a super nitpicky warning on at at least some linux + > clang configurations. I use -Weverything plus a lot of -Wno-*, and this > change added: > dynloader.c:7:4: warning: ISO C requires a translation unit to contain a= t least one declaration [-Wempty-translation-unit] We've been seeing that (or equivalents) on other platforms for years, if not decades. I can't get too excited about it really. The lazy man's way to get rid of it would be to put something like "int bogus =3D 0;" in the empty dynloader.c files. Better would be to not have the empty .c files at all, but I'm not sure how much we'd have to contort the Makefiles to support that. regards, tom lane