Commit 7f284deb authored by Andrew Dunstan's avatar Andrew Dunstan

Disable MSVC warning caused by recent snprintf.c changes

Discussion: https://postgr.es/m/05f348de-0c79-d88d-69b7-434ef828bd4d@2ndQuadrant.com
parent 450c7def
......@@ -1046,11 +1046,19 @@ fmtint(long long value, char type, int forcesign, int leftjust,
return; /* keep compiler quiet */
}
/* disable MSVC warning about applying unary minus to an unsigned value */
#if _MSC_VER
#pragma warning(push)
#pragma warning(disable: 4146)
#endif
/* Handle +/- */
if (dosign && adjust_sign((value < 0), forcesign, &signvalue))
uvalue = -(unsigned long long) value;
else
uvalue = (unsigned long long) value;
#if _MSC_VER
#pragma warning(pop)
#endif
/*
* SUS: the result of converting 0 with an explicit precision of 0 is no
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment