MSVC compilers complain about snprintf - Mailing list pgsql-hackers

From Andrew Dunstan
Subject MSVC compilers complain about snprintf
Date
Msg-id 05f348de-0c79-d88d-69b7-434ef828bd4d@2ndQuadrant.com
Whole thread Raw
Responses Re: MSVC compilers complain about snprintf  (Andres Freund <andres@anarazel.de>)
Re: MSVC compilers complain about snprintf  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Perl 5.26 and windows build system
Next
From: Andrew Dunstan
Date:
Subject: Re: pgsql: Add TAP tests for pg_verify_checksums