Compiler option -Wsystem-headers causes a huge amount of warnings for every single file: /usr/include/stdlib.h:342:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] void *valloc(size_t) __alloc_size(1); ^ /usr/include/stdlib.h:342:6: note: insert '_Nullable' if the pointer may be null /usr/include/stdlib.h:342:6: note: insert '_Nonnull' if the pointer should never be null 350 warnings generated. Removing the option silences them and speeds up the build massively. Reproducible: Always
Created attachment 511986 [details] Updated ebuild with silenced warnings - remove -Wsystem-headers - put LDFLAGS only on linker command lines to silence unused command line option warning - patch md.c to silence warnings - update misc and shell cmds to High Sierra versions - add dependency on ncurses for ncal (should be fine for bootstrap since ncurses is merged before darwin-miscutils)
Created attachment 511988 [details, diff] Silence numerous warnings in md.c
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56d30f30691c40e606d848ffbafac8029750bb99 commit 56d30f30691c40e606d848ffbafac8029750bb99 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2018-01-01 19:04:48 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2018-01-01 19:04:58 +0000 sys-apps/darwin-miscutils: version bump to High Sierra version Add compilation fixes/patch by Michael Weiser from bug #642666. Closes: https://bugs.gentoo.org/642666 Package-Manager: Portage-2.3.13, Repoman-2.3.3 sys-apps/darwin-miscutils/Manifest | 3 + .../darwin-miscutils/darwin-miscutils-12.ebuild | 156 +++++++++++++++++++++ 2 files changed, 159 insertions(+)