]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Work round for eapol_test not compiling on debian sid
authorNick Porter <nick@portercomputing.co.uk>
Mon, 16 Jan 2023 18:03:36 +0000 (18:03 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 16 Jan 2023 19:25:05 +0000 (19:25 +0000)
scripts/ci/eapol_test-build.sh

index 3f6c823a5814e119d448b1b84a70eac7a2c80ee5..8aec8b3f9e033ee0953f3a61aade38a068485986 100755 (executable)
@@ -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