From: Pádraig Brady
Date: Wed, 12 Jul 2023 19:34:47 +0000 (+0100) Subject: maint: give a new function the "pure" attribute X-Git-Tag: v9.4~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebd776a422cb21c846ea58f30930234c918e65d9;p=thirdparty%2Fcoreutils.git maint: give a new function the "pure" attribute * src/digest.c (problematic_chars): This recently introduced function does not modify state so is pure, even though GCC 13.1 at least did not warn about that attribute being appropriate. --- diff --git a/src/digest.c b/src/digest.c index 5490f96a49..e80eb3406a 100644 --- a/src/digest.c +++ b/src/digest.c @@ -564,6 +564,7 @@ or equivalent standalone program.\ that need escaping. Note we escape '\' itself to provide some forward compat to introduce escaping of other characters. */ +ATTRIBUTE_PURE static bool problematic_chars (char const *s) {