aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2019-05-03 21:56:46 -0700
committerNoah Misch <noah@leadboat.com>2019-05-03 21:56:46 -0700
commit726cc4242a2f766c8280a72ef7c8418965d139c8 (patch)
tree9b6aa9de72e76496c62ae4accfda6efc8852fc0b
parent7b37f4b02e11813b3cd9f7086149ba962a91e03c (diff)
downloadpostgresql-726cc4242a2f766c8280a72ef7c8418965d139c8.tar.gz
postgresql-726cc4242a2f766c8280a72ef7c8418965d139c8.zip
Suppress compiler warning in non-SSL, non-assert builds.
Jeff Janes, reviewed by Michael Paquier. Discussion: https://postgr.es/m/CAMkU=1x8taZfsbPkv_MsWbTtzibW_yQHXoMhF_DTtm=z2hVHDg@mail.gmail.com
-rw-r--r--contrib/pgcrypto/imath.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/pgcrypto/imath.c b/contrib/pgcrypto/imath.c
index 92422aa3ad5..bf399eebe54 100644
--- a/contrib/pgcrypto/imath.c
+++ b/contrib/pgcrypto/imath.c
@@ -18,6 +18,7 @@
* - rename DEBUG to IMATH_DEBUG
* - replace stdint.h usage with c.h equivalents
* - suppress MSVC warning 4146
+ * - add required PG_USED_FOR_ASSERTS_ONLY
*
* 2. Download a newer imath.c and imath.h. Transform them like in step 1.
* Apply to these files the diff you saved in step 1. Look for new lines
@@ -2587,7 +2588,7 @@ s_ksqr(mp_digit *da, mp_digit *dc, mp_size size_a)
mp_digit *t1,
*t2,
*t3,
- carry;
+ carry PG_USED_FOR_ASSERTS_ONLY;
mp_size at_size = size_a - bot_size;
mp_size buf_size = 2 * bot_size;