From 7ab64d2610ca5aa78006bef91091dfa0268adf64 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?= Date: Tue, 1 Sep 2015 11:59:35 +0100 Subject: [PATCH] base32: mark function as __attribute__ const * 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 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); -- 2.39.5