commit:     84372036b2a637165ec9f7c21245c0374ca314c4
Author:     Matthew Smith <matthew <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  7 09:47:14 2024 +0000
Commit:     Matthew Smith <matthew <AT> gentoo <DOT> org>
CommitDate: Sun Apr  7 10:40:02 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84372036

dev-lang/nasm: skip implicit decl warning for musl

Closes: https://bugs.gentoo.org/928848
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>

 dev-lang/nasm/nasm-2.16.02.ebuild | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/dev-lang/nasm/nasm-2.16.02.ebuild 
b/dev-lang/nasm/nasm-2.16.02.ebuild
index f1f5ac53b3bd..bd26dd550266 100644
--- a/dev-lang/nasm/nasm-2.16.02.ebuild
+++ b/dev-lang/nasm/nasm-2.16.02.ebuild
@@ -16,8 +16,11 @@ KEYWORDS="~amd64 ~arm64 ~ia64 ~loong ~ppc64 ~riscv ~x86 
~amd64-linux ~x86-linux"
 IUSE="doc"
 
 QA_CONFIG_IMPL_DECL_SKIP=(
+       # Windows.
        _BitScanReverse
        _BitScanReverse64
+
+       # Linux headers that are not included.
        __cpu_to_le16
        __cpu_to_le32
        __cpu_to_le64
@@ -27,7 +30,17 @@ QA_CONFIG_IMPL_DECL_SKIP=(
        cpu_to_le16
        cpu_to_le32
        cpu_to_le64
+
+       # __typeof as gnu extensions are not enabled
        typeof
+
+       # musl doesn't define __bswap_N in endian.h (it's named _bswapN
+       # instead). could be fixed to call this instead, or to include
+       # musl's byteswap.h instead, but it is much easier to fall back on
+       # __builtin_bswapN. Bug #928848
+       __bswap_16
+       __bswap_32
+       __bswap_64
 )
 
 # [fonts note] doc/psfonts.ph defines ordered list of font preference.

Reply via email to