]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
eapol_test: Fix OSX build using clang >= 11 (#3855) (#4044)
authorJorge Pereira <jpereira@users.noreply.github.com>
Thu, 1 Apr 2021 20:58:36 +0000 (17:58 -0300)
committerGitHub <noreply@github.com>
Thu, 1 Apr 2021 20:58:36 +0000 (16:58 -0400)
Fixes the eapol_test build using clang >= 11

../src/radius/radius_client.c:817:24: error: cast to smaller integer type 'RadiusType' from 'void *' [-Werror,-Wvoid-pointer-to-enum-cast]
RadiusType msg_type = (RadiusType) sock_ctx;

scripts/ci/eapol_test/config_osx

index eb3aa352d9e21ee3f1b381e27282f2902ae75b76..1b2045d52bddd772aad5cbdc568c1f4f65e43d20 100644 (file)
@@ -9,7 +9,7 @@
 # be modified from here. In most cases, these lines should use += in order not
 # to override previous values of the variables.
 
-CFLAGS += -g3 -O0 -Wno-error=deprecated-declarations
+CFLAGS += -g3 -O0 -Wno-error=deprecated-declarations -Wno-error=void-pointer-to-enum-cast
 CFLAGS += -I /usr/local/opt/openssl/include -I/usr/local/include/openssl
 LIBS += -L/usr/local/opt/openssl/lib -L/usr/local/lib