]> git.ipfire.org Git - thirdparty/libbsd.git/commit
include: Refactor «unused» attribute into new LIBBSD_UNUSED macro
authorGuillem Jover <guillem@hadrons.org>
Sat, 2 Nov 2024 22:12:40 +0000 (23:12 +0100)
committerGuillem Jover <guillem@hadrons.org>
Sat, 26 Jul 2025 10:25:40 +0000 (12:25 +0200)
commit1d711a2ced0d087ad1a7da23499c7ded4b4903db
treec644e576f66ae9e9580e931cb90aea95ad18b9a3
parentaff40cae08e329ea975eba26bcc9fd815cf2dca2
include: Refactor «unused» attribute into new LIBBSD_UNUSED macro

This make it possible to declare function arguments in headers as
potentially unused, so that they do not emit warnings. We will use this
instead of the BSD __unused, which we cannot currently enable on GNU
systems due to Linux and glibc having conflicting symbols.
include/bsd/sys/cdefs.h