[openwrt/openwrt] tools: b43-tools: fix compilation with GCC14

LEDE Commits lede-commits at lists.infradead.org
Tue Apr 23 07:17:36 PDT 2024


robimarko pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/a48786ef4034d9905357c44d09caba3303eb28d2

commit a48786ef4034d9905357c44d09caba3303eb28d2
Author: Robert Marko <robimarko at gmail.com>
AuthorDate: Fri Mar 29 18:57:03 2024 +0100

    tools: b43-tools: fix compilation with GCC14
    
    GCC14 no longer treats integer types and pointer types as equivalent in
    assignments (including implied assignments of function arguments and return
    values), and instead fails the compilation with a type error.
    
    So, as a workaround lets disable the newly introduced error
    -Werror=int-conversion and just make it print a warning to enable compiling
    with GCC14 as Fedora 40 now defaults to it.
    
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 tools/b43-tools/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/b43-tools/Makefile b/tools/b43-tools/Makefile
index bae498c78f..19918efde4 100644
--- a/tools/b43-tools/Makefile
+++ b/tools/b43-tools/Makefile
@@ -23,7 +23,7 @@ define Host/Compile
 		$(HOST_MAKE_FLAGS) \
 		$(1) QUIET_SPARSE=:
 	+$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR)/assembler \
-		CFLAGS="$(HOST_CFLAGS) -include endian.h" \
+		CFLAGS="$(HOST_CFLAGS) -include endian.h -Wno-error=int-conversion" \
 		$(HOST_MAKE_FLAGS) \
 		LDFLAGS= \
 		$(1) QUIET_SPARSE=:




More information about the lede-commits mailing list