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.
This commit is contained in:
Pádraig Brady committed 2023-07-12 20:41:00 +01:00
1 parent 86614ba1c2
commit ebd776a422
1 file changed
+1
+1
View File
@@ -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)
{