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 1gCu6X-0008KO-RT for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Oct 2018 22:15:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gCu6W-0006DG-CW for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Oct 2018 22:15: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.89) (envelope-from ) id 1gCu2t-0002Y7-Bt for pgsql-hackers@lists.postgresql.org; Wed, 17 Oct 2018 22:12:03 +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.89) (envelope-from ) id 1gCu2p-0004Y5-QO for pgsql-hackers@postgresql.org; Wed, 17 Oct 2018 22:12:02 +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 w9HMBtwh015726; Wed, 17 Oct 2018 18:11:55 -0400 From: Tom Lane To: Andrew Dunstan cc: PostgreSQL-development Subject: Re: MSVC compilers complain about snprintf In-reply-to: <05f348de-0c79-d88d-69b7-434ef828bd4d@2ndQuadrant.com> References: <05f348de-0c79-d88d-69b7-434ef828bd4d@2ndQuadrant.com> Comments: In-reply-to Andrew Dunstan message dated "Wed, 17 Oct 2018 17:27:14 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15724.1539814315.1@sss.pgh.pa.us> Date: Wed, 17 Oct 2018 18:11:55 -0400 Message-ID: <15725.1539814315@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Dunstan writes: > The MSVC compilers are whingeing about recent changes in snprintf.c: > src\port\snprintf.c(1051): warning C4146: unary minus operator > applied to unsigned type, result still unsigned Yeah, see commit 4868e4468590bc32f9c3afed4ec795d6a7732c9d. The law of conservation of warning messages seems to be at work :-( regards, tom lane