diff options
author | Colin Watson <cjwatson@debian.org> | 2022-01-09 00:32:11 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2022-01-09 00:32:11 +0000 |
commit | b1974937b100fe46027cd7b3f9ebc9fed479ed9d (patch) | |
tree | cdca8acc6f71247f87ce654809318abcdc605126 /libdb | |
parent | 84b6689805b971b1a229f060a92658571c1daa07 (diff) |
Use MAYBE_UNUSED rather than _GL_UNUSED
We should be using the public name from Gnulib's `attribute.h`.
* lib/orderfiles.c (order_files) [!HAVE_LINUX_FIEMAP_H &&
!HAVE_POSIX_FADVISE]: Use MAYBE_UNUSED rather than _GL_UNUSED.
* lib/sandbox.c (_sandbox_load) [!HAVE_LIBSECCOMP]: Likewise.
* lib/security.c (drop_privs): Likewise.
* libdb/db_ndbm.c (unsorted_nextkey): Likewise.
* src/accessdb.c (help_filter): Likewise.
* src/check_mandirs.c (chown_if_possible) [!MAN_OWNER]: Likewise.
* src/convert.c (close_conv_to_locale): Likewise.
* src/decompress.c (decompress_zlib): Likewise.
* src/lexgrog_test.c (help_filter): Likewise.
* src/man.c (help_filter, squeeze_blank_lines, disable_hyphenation,
disable_justification): Likewise.
* src/manconv.c (manconv): Likewise.
* src/manp.c (free_config_file): Likewise.
* src/tests/fspause.c (main): Likewise.
* src/whatis.c (help_filter): Likewise.
* src/zsoelim_main.c (parse_opt): Likewise.
Diffstat (limited to 'libdb')
-rw-r--r-- | libdb/db_ndbm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libdb/db_ndbm.c b/libdb/db_ndbm.c index 64000c1c..57c26e83 100644 --- a/libdb/db_ndbm.c +++ b/libdb/db_ndbm.c @@ -35,6 +35,7 @@ #include <sys/types.h> /* for open() */ #include <sys/stat.h> +#include "attribute.h" #include "stat-time.h" #include "timespec.h" #include "xvasprintf.h" @@ -123,7 +124,7 @@ static datum unsorted_firstkey (man_ndbm_wrapper wrap) return copy_datum (dbm_firstkey (wrap->file)); } -static datum unsorted_nextkey (man_ndbm_wrapper wrap, datum key _GL_UNUSED) +static datum unsorted_nextkey (man_ndbm_wrapper wrap, datum key MAYBE_UNUSED) { return copy_datum (dbm_nextkey (wrap->file)); } |