From 84bc1563e22358db4bb1cd5c3bbbe38902e7445f Mon Sep 17 00:00:00 2001 From: Cy Schubert Date: Wed, 17 Mar 2021 19:26:41 +0000 Subject: [PATCH] MFH: r561297 Fix build on llvm10 and gcc. PR: 252577 Reported by: David Sieborger --- .../wpa_supplicant/files/patch-src_radius_radius__client.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/security/wpa_supplicant/files/patch-src_radius_radius__client.c b/security/wpa_supplicant/files/patch-src_radius_radius__client.c index 4897aa59cfea..de86947f57b2 100644 --- a/security/wpa_supplicant/files/patch-src_radius_radius__client.c +++ b/security/wpa_supplicant/files/patch-src_radius_radius__client.c @@ -1,10 +1,12 @@ --- src/radius/radius_client.c.orig 2019-08-07 06:25:25.000000000 -0700 -+++ src/radius/radius_client.c 2020-12-29 20:50:52.923004000 -0800 -@@ -814,6 +814,7 @@ ++++ src/radius/radius_client.c 2021-01-11 08:35:20.860835000 -0800 +@@ -814,6 +814,9 @@ { struct radius_client_data *radius = eloop_ctx; struct hostapd_radius_servers *conf = radius->conf; ++#if defined(__clang_major__) && __clang_major__ >= 11 +#pragma GCC diagnostic ignored "-Wvoid-pointer-to-enum-cast" ++#endif RadiusType msg_type = (RadiusType) sock_ctx; int len, roundtrip; unsigned char buf[3000];