[vlc-commits] securetransport: fix warning
Alexandre Janniaux
git at videolan.org
Wed Jul 22 15:28:08 CEST 2020
vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Mon Jul 13 09:37:23 2020 +0200| [a32b0a0ff08bd416312daabddb2485bae8a110d2] | committer: Alexandre Janniaux
securetransport: fix warning
../../../modules/misc/securetransport.c:763:68: warning: values of type 'OSStatus' should not be used as format arguments; add an
explicit cast to 'int' instead [-Wformat]
msg_Err(crd, "failed setting ALPN protocols (%i)", ret);
~~ ^~~
%i (int)
../../../include/vlc_messages.h:102:38: note: expanded from macro 'msg_Err'
msg_Generic(p_this, VLC_MSG_ERR, __VA_ARGS__)
^~~~~~~~~~~
../../../include/vlc_messages.h:98:30: note: expanded from macro 'msg_Generic'
__func__, __VA_ARGS__)
^~~~~~~~~~~
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a32b0a0ff08bd416312daabddb2485bae8a110d2
---
modules/misc/securetransport.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/misc/securetransport.c b/modules/misc/securetransport.c
index 3b14f0399a..228b8129b7 100644
--- a/modules/misc/securetransport.c
+++ b/modules/misc/securetransport.c
@@ -760,7 +760,7 @@ static vlc_tls_t *st_ClientSessionOpen(vlc_tls_client_t *crd, vlc_tls_t *sock,
OSStatus ret = SSLSetALPNProtocols(sys->p_context, alpnValues);
if (ret != noErr){
- msg_Err(crd, "failed setting ALPN protocols (%i)", ret);
+ msg_Err(crd, "failed setting ALPN protocols (%i)", (int)ret);
}
CFRelease(alpnValues);
} else {
More information about the vlc-commits
mailing list