From ebd776a422cb21c846ea58f30930234c918e65d9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?= Date: Wed, 12 Jul 2023 20:34:47 +0100 Subject: [PATCH] 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. --- src/digest.c | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.47.2