summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-09-29 16:36:40 +0200
committerBruno Haible <bruno@clisp.org>2019-09-29 16:36:40 +0200
commitde255f87357354e0f2422d9321fe9701b776ead5 (patch)
tree37a480c25e3705b5d9e1c32842ab0a581572cbaa
parent17cccbf76f01479de3f45a519a69eb02695eb1d6 (diff)
downloadgnulib-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--ChangeLog6
-rw-r--r--lib/gl_avltree_list.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index df438e96da..325ddf57b7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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)

Return to:

Send suggestions and report system problems to the System administrator.