From aea26f7791d221ccd4865f69ca8db237571963ee Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Fri, 14 May 2021 11:51:53 +0200 Subject: ipxe: Inhibit -Werror to fix build with gcc-11 * with gcc-11 it fails with: drivers/net/ath/ath5k/ath5k_eeprom.c:437:65: error: 'val' may be used uninitialized [-Werror=maybe-uninitialized] 437 | ee->ee_switch_settling_turbo[mode] = (val >> 8) & 0x7f; | ~~~~~~~~~~~^~~~~~ tests/bigint_test.c: In function 'bigint_test_exec': tests/bigint_test.c:232:14: error: 'result_raw' may be used uninitialized [-Werror=maybe-uninitialized] 232 | ok ( memcmp ( result_raw, expected_raw, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 233 | sizeof ( result_raw ) ) == 0 ); \ | ~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Martin Jansa Signed-off-by: Bruce Ashfield --- recipes-extended/ipxe/ipxe_git.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes-extended/ipxe/ipxe_git.bb b/recipes-extended/ipxe/ipxe_git.bb index 43c8f0ed..9e98495a 100644 --- a/recipes-extended/ipxe/ipxe_git.bb +++ b/recipes-extended/ipxe/ipxe_git.bb @@ -28,6 +28,7 @@ EXTRA_OEMAKE = " \ CROSS_COMPILE="${TARGET_PREFIX}" \ EXTRA_HOST_CFLAGS="${BUILD_CFLAGS}" \ EXTRA_HOST_LDFLAGS="${BUILD_LDFLAGS}" \ + NO_WERROR="1" \ " S = "${WORKDIR}/git/src" -- cgit v1.2.3-54-g00ecf