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 1n7OwN-0000RE-Ge for pgsql-committers@arkaria.postgresql.org; Tue, 11 Jan 2022 21:44:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n7OwL-0001vE-CA for pgsql-committers@arkaria.postgresql.org; Tue, 11 Jan 2022 21:44:25 +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 1n7OwL-0001v2-56 for pgsql-committers@lists.postgresql.org; Tue, 11 Jan 2022 21:44:25 +0000 Received: from relay2-d.mail.gandi.net ([2001:4b98:dc4:8::222]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n7OwH-0007eP-VW for pgsql-committers@lists.postgresql.org; Tue, 11 Jan 2022 21:44:24 +0000 Received: (Authenticated sender: adsend@dunslane.net) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 4270440002; Tue, 11 Jan 2022 21:44:17 +0000 (UTC) Message-ID: <8320cca6-5647-be5d-9b22-914415bcbc27@dunslane.net> Date: Tue, 11 Jan 2022 16:44:15 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: pgsql: Check for STATUS_DELETE_PENDING on Windows. Content-Language: en-US To: Thomas Munro , Tom Lane Cc: Thomas Munro , pgsql-committers References: <2760528.1641929756@sss.pgh.pa.us> From: Andrew Dunstan In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 1/11/22 16:22, Thomas Munro wrote: > 2. headerscheck and cpluspluscheck don't like it, at least >> not on non-Windows: >> >> $ src/tools/pginclude/headerscheck >> In file included from /tmp/headerscheck.WKh8cz/test.c:2: >> ./src/include/port/win32ntdll.h:20:10: fatal error: ntstatus.h: No such file or directory >> #include >> ^~~~~~~~~~~~ >> >> One way to solve that, perhaps, is to wrap the whole header >> in #ifdef WIN32. But I think our more usual practice has >> been to add such headers to the exclusion lists in those >> two scripts. > Done. > > Those scripts aren't really on my radar... would it be a good idea to > run them as steps in the CompilerWarnings CI task? > > Or in a buildfarm module (c.f. the perl checks) cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com