Package: libbsd0 Version: 0.12.2-1 Severity: wishlist sys/cdefs.h from libbsd neglects to define __unused, with this comment: /* Linux headers define a struct with a member names __unused. * Debian bugs: #522773 (linux), #522774 (libc). * Disable for now. */
One of those reports has been closed for about 9 years, and the other is marked "wontfix". sys/tree.h still refers to the macro, which can cause non-obvious error messages: In file included from test.c:3: test.c:29:1: error: expected ‘;’ before ‘static’ 29 | RB_PROTOTYPE_STATIC(tree_head, tree_node, rb_entry, tree_node_cmp); | ^~~~~~~~~~~~~~~~~~~ I don't see any particular reason why it has to use the exact macro name used on BSD; so, I recommend replacing all references with LIBBSD_UNUSED and re-enabling the part of cdefs.h that would define it. (If the name "__unused" later becomes available, and anyone still cares, a "#define __unused LIBBSD_UNUSED" can be added.) -- Michael
signature.asc
Description: PGP signature