]> Savannah Git Hosting - gnulib.git/commitdiff
*-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
authorBruno Haible <bruno@clisp.org>
Sun, 18 Oct 2020 13:10:23 +0000 (15:10 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 18 Oct 2020 14:24:00 +0000 (16:24 +0200)
* lib/gl_anylinked_list2.h (gl_linked_iterator_free): Remove
'_GL_ATTRIBUTE_CONST'.
* lib/gl_anytree_list2.h (gl_tree_iterator_free): Likewise.
* lib/gl_anytree_omap.h (gl_tree_iterator_free): Likewise.
* lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
* lib/gl_array_list.c (gl_array_iterator_free): Likewise.
* lib/gl_array_omap.c (gl_array_iterator_free): Likewise.
* lib/gl_array_oset.c (gl_array_iterator_free): Likewise.
* lib/gl_carray_list.c (gl_carray_iterator_free): Likewise.

ChangeLog
lib/gl_anylinked_list2.h
lib/gl_anytree_list2.h
lib/gl_anytree_omap.h
lib/gl_anytree_oset.h
lib/gl_array_list.c
lib/gl_array_omap.c
lib/gl_array_oset.c
lib/gl_carray_list.c

index 9634c0a2ee681c5ef982e265435eb450c2b7be95..df3eabfefdd65074f1d5370660b46a5891e831fd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2020-10-18  Bruno Haible  <bruno@clisp.org>
+
+       *-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
+       * lib/gl_anylinked_list2.h (gl_linked_iterator_free): Remove
+       '_GL_ATTRIBUTE_CONST'.
+       * lib/gl_anytree_list2.h (gl_tree_iterator_free): Likewise.
+       * lib/gl_anytree_omap.h (gl_tree_iterator_free): Likewise.
+       * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
+       * lib/gl_array_list.c (gl_array_iterator_free): Likewise.
+       * lib/gl_array_omap.c (gl_array_iterator_free): Likewise.
+       * lib/gl_array_oset.c (gl_array_iterator_free): Likewise.
+       * lib/gl_carray_list.c (gl_carray_iterator_free): Likewise.
+
 2020-10-18  Bruno Haible  <bruno@clisp.org>
 
        obstack: Fix a clang warning.
index bc9d5c7ab108f8d8fa69022a5e94e01a206e4895..24ef47ec0c2d3f58be3f6a40959070fef577a73b 100644 (file)
@@ -1022,7 +1022,7 @@ gl_linked_iterator_next (gl_list_iterator_t *iterator,
     return false;
 }
 
-static void _GL_ATTRIBUTE_CONST
+static void
 gl_linked_iterator_free (gl_list_iterator_t *iterator _GL_ATTRIBUTE_MAYBE_UNUSED)
 {
 }
index 3cb34221dbc29d6443bd83315126689687ab5087..ae4d419be5c6da408a41db3245cee13443205ea3 100644 (file)
@@ -631,7 +631,7 @@ gl_tree_iterator_next (gl_list_iterator_t *iterator,
     return false;
 }
 
-static void _GL_ATTRIBUTE_CONST
+static void
 gl_tree_iterator_free (gl_list_iterator_t *iterator  _GL_ATTRIBUTE_MAYBE_UNUSED)
 {
 }
index 016c83be3783823fecf85a060b453246fc6cfcc5..d8658c2e51ac461e279901045ac6e7f12ccb7d6e 100644 (file)
@@ -299,7 +299,7 @@ gl_tree_iterator_next (gl_omap_iterator_t *iterator,
     return false;
 }
 
-static void _GL_ATTRIBUTE_CONST
+static void
 gl_tree_iterator_free (gl_omap_iterator_t *iterator _GL_ATTRIBUTE_MAYBE_UNUSED)
 {
 }
index 46c47c2867fe6fcd4add94a9aa36d5fd4c7a70ec..5b3ab13037cfcd135c8b3edd7a62be0e2d860687 100644 (file)
@@ -437,7 +437,7 @@ gl_tree_iterator_next (gl_oset_iterator_t *iterator, const void **eltp)
     return false;
 }
 
-static void _GL_ATTRIBUTE_CONST
+static void
 gl_tree_iterator_free (gl_oset_iterator_t *iterator _GL_ATTRIBUTE_MAYBE_UNUSED)
 {
 }
index 92bf4636a3f6a7b0c400de0e655e567b1037e4ba..3d9020e5d8926d2bd41d98a00143e35ed835dd0b 100644 (file)
@@ -508,7 +508,7 @@ gl_array_iterator_next (gl_list_iterator_t *iterator,
     return false;
 }
 
-static void _GL_ATTRIBUTE_CONST
+static void
 gl_array_iterator_free (gl_list_iterator_t *iterator _GL_ATTRIBUTE_MAYBE_UNUSED)
 {
 }
index c3117db3fe55358e45d737d408fc0cc148958c30..2bc5f5e02c0ab87d4b95f2298da3a57563e40f12 100644 (file)
@@ -369,7 +369,7 @@ gl_array_iterator_next (gl_omap_iterator_t *iterator,
     return false;
 }
 
-static void _GL_ATTRIBUTE_CONST
+static void
 gl_array_iterator_free (gl_omap_iterator_t *iterator _GL_ATTRIBUTE_MAYBE_UNUSED)
 {
 }
index 5fb0da1eb29bf113d915b6a72529c3458e5378cf..7832abcc60b5ee29cb30deec0d1c956b83edb799 100644 (file)
@@ -487,7 +487,7 @@ gl_array_iterator_next (gl_oset_iterator_t *iterator, const void **eltp)
     return false;
 }
 
-static void _GL_ATTRIBUTE_CONST
+static void
 gl_array_iterator_free (gl_oset_iterator_t *iterator _GL_ATTRIBUTE_MAYBE_UNUSED)
 {
 }
index 8c2dc4e4878e8063e59b083e58cce6aff021b7f4..e602516d73e6de033f95026f6110eebb8e9747e2 100644 (file)
@@ -680,7 +680,7 @@ gl_carray_iterator_next (gl_list_iterator_t *iterator,
     return false;
 }
 
-static void _GL_ATTRIBUTE_CONST
+static void
 gl_carray_iterator_free (gl_list_iterator_t *iterator _GL_ATTRIBUTE_MAYBE_UNUSED)
 {
 }