]> Savannah Git Hosting - gnulib.git/commit
avltree-list: avoid compiler warnings
authorDylan Cali <calid1984@gmail.com>
Tue, 16 Sep 2014 15:42:36 +0000 (16:42 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 16 Sep 2014 16:03:00 +0000 (17:03 +0100)
commit5549ef8e01b431f26cfcf2991fbee44ca32c7dcb
tree0f2e67360e621d28abea608aaae3225c4c5b3dbf
parent41473cf94a0e9eef96870b76eed9070f87d0c01a
avltree-list: avoid compiler warnings

* lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
-Werror=suggest-attribute=pure.
* lib/gl_array_list.c: Likewise.
* lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
declaration to avoid -Werror=missing-prototypes.  This is not added
to a header as only exported for tests.  Add (void) to the
check_invariants() call to indicate we're discarding the result
in this context which avoids -Werror=unused-value.  Note we don't
use ignore_value here to avoid a dependency as we know we'll not
be adding __attribute__((warn_unused_result)) to check_invariants().
Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
ChangeLog
lib/gl_anytree_list2.h
lib/gl_array_list.c
lib/gl_avltree_list.c