[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
silence some "defined but not used" warnings
|
From: |
Bruno Haible |
|
Subject: |
silence some "defined but not used" warnings |
|
Date: |
Thu, 18 May 2023 23:18:13 +0200 |
In order to silence these warnings
../../gllib/get-rusage-data.c:354:1: warning: 'get_rusage_data_via_iterator'
defined but not used [-Wunused-function]
../../gllib/hamt.c:201:1: warning: 'init_element' defined but not used
[-Wunused-function]
../../gltests/../gllib/stack.h:75:24: warning: 'stack_current_base' defined but
not used [-Wunused-function]
I'm making use of _GL_ATTRIBUTE_MAYBE_UNUSED.
2023-05-18 Bruno Haible <bruno@clisp.org>
stack: Silence gcc warning in tests.
* lib/stack.h (init, destroy, empty, current_base, push, pop, discard,
top, size): Mark as possibly unused.
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.
* lib/get-rusage-data.c (get_rusage_data_via_iterator): Mark as possibly
unused.
0001-get-rusage-data-Silence-gcc-warning.patch
Description: Text Data
0002-hamt-Silence-gcc-warning.patch
Description: Text Data
0003-stack-Silence-gcc-warning-in-tests.patch
Description: Text Data