]> Savannah Git Hosting - gnulib.git/commitdiff
hamt: Silence gcc warning.
authorBruno Haible <bruno@clisp.org>
Thu, 18 May 2023 20:45:45 +0000 (22:45 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 18 May 2023 20:54:46 +0000 (22:54 +0200)
* lib/hamt.c (init_element): Mark as possibly unused.

ChangeLog
lib/hamt.c

index e080e8f670e1e4507b597372daa992d86f5cf461..aff37369efbb01043c6918bb09fc88d6b4c43210 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-05-18  Bruno Haible  <bruno@clisp.org>
+
+       hamt: Silence gcc warning.
+       * lib/hamt.c (init_element): Mark as possibly unused.
+
 2023-05-18  Bruno Haible  <bruno@clisp.org>
 
        get-rusage-data: Silence gcc warning.
index aa76f9029ec4d49b8ad0b67c18c558aa758343b6..8cbca387f0956242f246bf9e765e6b35d04ebd98 100644 (file)
@@ -197,6 +197,7 @@ free_element (const struct function_table *functions, Hamt_entry *elt)
 }
 
 /* Return the initialized element.  */
+_GL_ATTRIBUTE_MAYBE_UNUSED
 static Hamt_entry *
 init_element (Hamt_entry *elt)
 {