summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-08-01 14:32:33 +0200
committerJim Meyering <meyering@redhat.com>2012-08-01 15:05:42 +0200
commit1118f832efe3920ffe9b57cdd8c0af1ac9a76993 (patch)
treed0f601e9dce153164e396d6424af3da599652399
parent386ae15bce17b20251e8d9fce3ff1c38d76c8212 (diff)
downloadpatch-1118f832efe3920ffe9b57cdd8c0af1ac9a76993.tar.gz
build: mark an internal function as "pure"
* src/pch.c (sha1_says_nonexistent): Apply _GL_ATTRIBUTE_PURE, to avoid failure with -Werror=suggest-attribute=pure.
-rw-r--r--src/pch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pch.c b/src/pch.c
index c4205f2..05874e0 100644
--- a/src/pch.c
+++ b/src/pch.c
@@ -359,7 +359,7 @@ get_sha1(char **sha1, char const *start, char const *end)
(*sha1)[len] = 0;
}
-static int
+static int _GL_ATTRIBUTE_PURE
sha1_says_nonexistent(char const *sha1)
{
char const *empty_sha1 = "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391";