Mercurial > gnulib
changeset 19259:f0b523eb8d96
crypto/gc: fix build failure with -Werror=suggest-attribute=const
* lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
author | Jia Zhang <qianyue.zj@alibaba-inc.com> |
---|---|
date | Sat, 28 Oct 2017 10:05:31 -0400 |
parents | 8bee84dcc288 |
children | 8fc416080bd2 |
files | ChangeLog lib/gc.h |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sat Oct 28 23:58:20 2017 -0400 +++ b/ChangeLog Sat Oct 28 10:05:31 2017 -0400 @@ -1,3 +1,9 @@ +2017-10-29 Jia Zhang <qianyue.zj@alibaba-inc.com> + Bruno Haible <bruno@clisp.org> + + crypto/gc: fix build failure with -Werror=suggest-attribute=const + * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute. + 2017-10-29 Jia Zhang <qianyue.zj@alibaba-inc.com> New module: crypto/gc-sm3
--- a/lib/gc.h Sat Oct 28 23:58:20 2017 -0400 +++ b/lib/gc.h Sat Oct 28 10:05:31 2017 -0400 @@ -136,7 +136,8 @@ extern Gc_rc gc_hash_open (Gc_hash hash, Gc_hash_mode mode, gc_hash_handle *outhandle); extern Gc_rc gc_hash_clone (gc_hash_handle handle, gc_hash_handle *outhandle); -extern size_t gc_hash_digest_length (Gc_hash hash); +extern size_t gc_hash_digest_length (Gc_hash hash) + _GL_ATTRIBUTE_CONST; extern void gc_hash_hmac_setkey (gc_hash_handle handle, size_t len, const char *key); extern void gc_hash_write (gc_hash_handle handle,