diff options
author | Bruno Haible <bruno@clisp.org> | 2019-09-29 16:36:40 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2019-09-29 16:36:40 +0200 |
commit | de255f87357354e0f2422d9321fe9701b776ead5 (patch) | |
tree | 37a480c25e3705b5d9e1c32842ab0a581572cbaa | |
parent | 17cccbf76f01479de3f45a519a69eb02695eb1d6 (diff) | |
download | gnulib-de255f87357354e0f2422d9321fe9701b776ead5.tar.gz gnulib-de255f87357354e0f2422d9321fe9701b776ead5.tar.bz2 |
avltree-list: Fix compilation warning (introduced on 2014-09-16).
* lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
'const' attribute.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/gl_avltree_list.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,5 +1,11 @@ 2019-09-29 Bruno Haible <bruno@clisp.org> + avltree-list: Fix compilation warning (introduced on 2014-09-16). + * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove + 'const' attribute. + +2019-09-29 Bruno Haible <bruno@clisp.org> + fbufmode: Fix compilation error on glibc >= 2.28 systems. * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28. diff --git a/lib/gl_avltree_list.c b/lib/gl_avltree_list.c index 655eeac01d..6d9a53785b 100644 --- a/lib/gl_avltree_list.c +++ b/lib/gl_avltree_list.c @@ -62,7 +62,7 @@ check_invariants (gl_list_node_t node, gl_list_node_t parent) return 1 + (left_height > right_height ? left_height : right_height); } -void _GL_ATTRIBUTE_CONST +void gl_avltree_list_check_invariants (gl_list_t list) { if (list->root != NULL) |