diff options
author | Jim Meyering <meyering@redhat.com> | 2012-08-01 14:32:33 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-08-01 15:05:42 +0200 |
commit | 1118f832efe3920ffe9b57cdd8c0af1ac9a76993 (patch) | |
tree | d0f601e9dce153164e396d6424af3da599652399 | |
parent | 386ae15bce17b20251e8d9fce3ff1c38d76c8212 (diff) | |
download | patch-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"; |