From bbc5e84513d0f1ad1b751638ece60ebaf0859910 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 11 Dec 2021 19:48:10 -0800 Subject: [PATCH] maint: factor.c: avoid new GCC 12 warning * src/factor.c (millerrabin2): Mark as ATTRIBUTE_PURE, per advice from GCC 12. --- src/factor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/factor.c b/src/factor.c index caa97cbd27..7fc30717a7 100644 --- a/src/factor.c +++ b/src/factor.c @@ -1137,7 +1137,7 @@ millerrabin (uintmax_t n, uintmax_t ni, uintmax_t b, uintmax_t q, return false; } -static bool +ATTRIBUTE_PURE static bool millerrabin2 (const uintmax_t *np, uintmax_t ni, const uintmax_t *bp, const uintmax_t *qp, unsigned int k, const uintmax_t *one) { -- 2.47.3