MSVC compilers complain about snprintf

From: Andrew Dunstan <andrew(dot)dunstan(at)2ndquadrant(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: MSVC compilers complain about snprintf
Date: 2018-10-17 21:27:14
Message-ID: 05f348de-0c79-d88d-69b7-434ef828bd4d@2ndQuadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


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

The line in question reads:

uvalue = -(unsigned long long) value;

cheers

andrew

--
Andrew Dunstan https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2018-10-17 21:30:05 Re: pgsql: Add TAP tests for pg_verify_checksums
Previous Message Andrew Dunstan 2018-10-17 21:22:35 Re: Perl 5.26 and windows build system