From: Jia Zhang Date: Sat, 28 Oct 2017 14:05:31 +0000 (-0400) Subject: crypto/gc: fix build failure with -Werror=suggest-attribute=const X-Git-Tag: v1.0~5853 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=e4e03ef4f13a451759d28d98be9655d0b01174e0;p=gnulib.git crypto/gc: fix build failure with -Werror=suggest-attribute=const * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute. --- diff --git a/ChangeLog b/ChangeLog index 7523b34d3c..e342dd2a34 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2017-10-29 Jia Zhang + Bruno Haible + + 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 New module: crypto/gc-sm3 diff --git a/lib/gc.h b/lib/gc.h index e65ba49a34..00e29e135e 100644 --- a/lib/gc.h +++ b/lib/gc.h @@ -136,7 +136,8 @@ extern Gc_rc gc_cipher_close (gc_cipher_handle handle); 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,