Re: MSVC compilers complain about snprintf

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: MSVC compilers complain about snprintf
Дата
Msg-id 20181017213131.sytx4z6p6z5i2i3e@alap3.anarazel.de
обсуждение исходный текст
Ответ на MSVC compilers complain about snprintf  (Andrew Dunstan <andrew.dunstan@2ndquadrant.com>)
Ответы Re: MSVC compilers complain about snprintf
Список pgsql-hackers
Hi,

On 2018-10-17 17:27:14 -0400, Andrew Dunstan wrote:
> 
> 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;

Yea, that's intended. Is there a way to silence that one, but just keep
the code largely similar?

Greetings,

Andres Freund


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: pgsql: Add TAP tests for pg_verify_checksums
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Large writable variables