From: Nick Porter Date: Mon, 16 Jan 2023 18:03:36 +0000 (+0000) Subject: Work round for eapol_test not compiling on debian sid X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e48ddce3edec4f1d2f5af2fc1711730f16db8ffc;p=thirdparty%2Ffreeradius-server.git Work round for eapol_test not compiling on debian sid --- diff --git a/scripts/ci/eapol_test-build.sh b/scripts/ci/eapol_test-build.sh index 3f6c823a581..8aec8b3f9e0 100755 --- a/scripts/ci/eapol_test-build.sh +++ b/scripts/ci/eapol_test-build.sh @@ -95,6 +95,12 @@ fi cp -n "$BUILD_CONF_FILE" "$WPA_SUPPLICANT_DIR/.config" +# There is currently a code path incorrectly identified as a use-after-free by GCC on sid +# Make that just a warning rather than a compilation failure +if ! [ -z `lsb_release -d | grep sid` ]; then + export CFLAGS="-MMD -O2 -Wall -Wno-error=use-after-free -g" +fi + if ! ${MAKE} -C "${WPA_SUPPLICANT_DIR}" -j8 eapol_test 1>&2 || [ ! -e "${WPA_SUPPLICANT_DIR}/eapol_test" ]; then echo "Build error" 1>&2 if [ -z "${BUILD_DIR}" ]; then rm -rf "$TMP_BUILD_DIR"; fi