Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1auMhz-00047R-IZ for pgsql-hackers@arkaria.postgresql.org; Sun, 24 Apr 2016 16:16:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1auMhz-0003pI-1T for pgsql-hackers@arkaria.postgresql.org; Sun, 24 Apr 2016 16:16:31 +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.84_2) (envelope-from ) id 1auMhy-0003oW-5B for pgsql-hackers@postgresql.org; Sun, 24 Apr 2016 16:16:30 +0000 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1auMhu-0007jA-W9 for pgsql-hackers@postgresql.org; Sun, 24 Apr 2016 16:16:29 +0000 Received: from mfilter37-d.gandi.net (mfilter37-d.gandi.net [217.70.178.168]) by relay6-d.mail.gandi.net (Postfix) with ESMTP id A7453FB88B; Sun, 24 Apr 2016 18:16:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter37-d.gandi.net Received: from relay6-d.mail.gandi.net ([IPv6:::ffff:217.70.183.198]) by mfilter37-d.gandi.net (mfilter37-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 3PKrHfZTDw5a; Sun, 24 Apr 2016 18:16:23 +0200 (CEST) X-Originating-IP: 98.122.164.227 Received: from [192.168.10.146] (unknown [98.122.164.227]) (Authenticated sender: adsend@dunslane.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id E15E9FB8B9; Sun, 24 Apr 2016 18:16:12 +0200 (CEST) Subject: Re: VS 2015 support in src/tools/msvc To: Tom Lane References: <0B77CFCB-0F90-4CAB-8509-7EB391C06D59@chrullrich.net> <570A6A14.6040303@dunslane.net> <570A9FCE.5040201@chrullrich.net> <570ABFA0.4090403@2ndquadrant.com> <57192C59.9090903@dunslane.net> <571BD6D4.9@dunslane.net> <571BED3C.5070! ! 209@dunslane.net> <17239.1461448469@sss.pgh.pa.us> <10891.1461450795@sss.pgh.pa.us> <571C3CA6.5070803@dunslane.net> <571CE6DC.90105! 01@dunslane.net> <9186.1461513523@sss.pgh.pa.us> Cc: Christian Ullrich , Michael Paquier , Petr Jelinek , Robert Haas , Magnus Hagander , PostgreSQL mailing lists From: Andrew Dunstan Message-ID: <571CF14B.4060005@dunslane.net> Date: Sun, 24 Apr 2016 12:16:11 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <9186.1461513523@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 04/24/2016 11:58 AM, Tom Lane wrote: > Andrew Dunstan writes: >> OK, here's my final version of the patch, which I will apply in 24 hours >> or so unless there is an objection. >> +#pragma warning(push) >> +#pragma warning(disable : 4091) >> #include >> +#pragma warning(pop) > Hmm ... does this pragma work on *every* compiler we're going to use > on Windows? I'm afraid that trying to suppress a warning in VS2015 > is going to result in outright failure with other compilers. > > According to my research it works on all the MSVC versions we support. I didn't research the others (i.e. gcc), but we already use the pragma in float.c without ill effect. Isn't the way #pragma works that compilers that don't understand the particular pragma are just supposed to ignore it? cheers andrew -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers