From: Jim Meyering Date: Sun, 12 Dec 2021 03:48:10 +0000 (-0800) Subject: maint: factor.c: avoid new GCC 12 warning X-Git-Tag: v9.1~171 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bbc5e84513d0f1ad1b751638ece60ebaf0859910;p=thirdparty%2Fcoreutils.git maint: factor.c: avoid new GCC 12 warning * src/factor.c (millerrabin2): Mark as ATTRIBUTE_PURE, per advice from GCC 12. --- 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) {