* lib/base32.h (isbase32): Mark __attribute__ const as suggested by GCC, and consistent with the base64 module. --- ChangeLog | 6 ++++++ lib/base32.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog index 7384900..cfefa5a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-09-01 P??draig Brady <[email protected]> + + 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 <[email protected]> gnulib-tool: don't transform binary files with sed diff --git a/lib/base32.h b/lib/base32.h index f2cc060..7787da9 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); -- 2.4.1
