Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a3saT-0003aG-7E for pgsql-bugs@arkaria.postgresql.org; Tue, 01 Dec 2015 21:35:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a3saS-0001vV-IB for pgsql-bugs@arkaria.postgresql.org; Tue, 01 Dec 2015 21:35:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a3sZp-0001Br-SU for pgsql-bugs@postgresql.org; Tue, 01 Dec 2015 21:35:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a3sZn-0000Eo-8H for pgsql-bugs@postgresql.org; Tue, 01 Dec 2015 21:35:09 +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 tB1LZ1WV005177; Tue, 1 Dec 2015 16:35:01 -0500 From: Tom Lane To: paul.moore@centrify.com cc: pgsql-bugs@postgresql.org, Andres Freund Subject: Re: BUG #13788: compile error in generic_msvc.h In-reply-to: <20151201165457.2760.18019@wrigleys.postgresql.org> References: <20151201165457.2760.18019@wrigleys.postgresql.org> Comments: In-reply-to paul.moore@centrify.com message dated "Tue, 01 Dec 2015 16:54:57 +0000" Date: Tue, 01 Dec 2015 16:35:01 -0500 Message-ID: <5176.1449005701@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org paul.moore@centrify.com writes: > Bug reference: 13788 > Logged by: paul moore > Email address: paul.moore@centrify.com > PostgreSQL version: 9.5beta1 > Operating system: win server 2012 > Description: > vs 2015, compiling spi execq sample > vc complains about this > 1>c:\Program > Files\PostgreSQL\9.5\include\server\port/atomics/generic-msvc.h(91): error > C2664: 'LONG64 _InterlockedCompareExchange64(volatile LONG64 > *,LONG64,LONG64)': cannot convert argument 1 from 'volatile uint64 *' to > 'volatile LONG64 *' > same for the add64 function a few lines later That's a bit weird. A perhaps plausible explanation would be that the compiler is unhappy about passing an unsigned argument to a signed parameter; but if they've tightened it up like that, why no similar complaint for the 32-bit versions just above these? Can you try inserting a cast to (volatile int64 *), just to see? regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs