From: Pádraig Brady Date: Tue, 1 Sep 2015 10:59:35 +0000 (+0100) Subject: base32: mark function as __attribute__ const X-Git-Tag: v1.0~6975 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=7ab64d2610ca5aa78006bef91091dfa0268adf64;p=gnulib.git base32: mark function as __attribute__ const * lib/base32.h (isbase32): Mark __attribute__ const as suggested by GCC, and consistent with the base64 module. --- diff --git a/ChangeLog b/ChangeLog index 7384900735..cfefa5a85f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-09-01 Pádraig Brady + + base32: mark function as __attribute__ const + * lib/base32.h (isbase32): Mark __attribute__ const as + suggested by GCC, and consistent with the base64 module. + 2015-08-20 Daiki Ueno gnulib-tool: don't transform binary files with sed diff --git a/lib/base32.h b/lib/base32.h index f2cc060941..7787da9d7c 100644 --- a/lib/base32.h +++ b/lib/base32.h @@ -34,7 +34,7 @@ struct base32_decode_context char buf[8]; }; -extern bool isbase32 (char ch); +extern bool isbase32 (char ch) _GL_ATTRIBUTE_CONST; extern void base32_encode (const char *restrict in, size_t inlen, char *restrict out, size_t outlen);