Skip to content

Commit 726cc42

Browse files
committed
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
1 parent 7b37f4b commit 726cc42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/pgcrypto/imath.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
* - rename DEBUG to IMATH_DEBUG
1919
* - replace stdint.h usage with c.h equivalents
2020
* - suppress MSVC warning 4146
21+
* - add required PG_USED_FOR_ASSERTS_ONLY
2122
*
2223
* 2. Download a newer imath.c and imath.h. Transform them like in step 1.
2324
* 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)
25872588
mp_digit *t1,
25882589
*t2,
25892590
*t3,
2590-
carry;
2591+
carry PG_USED_FOR_ASSERTS_ONLY;
25912592
mp_size at_size = size_a - bot_size;
25922593
mp_size buf_size = 2 * bot_size;
25932594

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy