From: Nick Mathewson Date: Thu, 3 Nov 2016 15:16:06 +0000 (-0400) Subject: Fix two warnings in test_link_handshake.c X-Git-Tag: tor-0.3.0.1-alpha~187 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=409984c6ae6b28b7f37aba3b137a37a069c65056;p=thirdparty%2Ftor.git Fix two warnings in test_link_handshake.c One is fixed by disabling the -Wredundant-decls warnings around openssl headers here, because of the old double-declaration of SSL_get_selected_srtp_profile(). One is fixed by including compat.h before or.h so that we get the winsock2.h include before the windows.h include. --- diff --git a/src/test/test_link_handshake.c b/src/test/test_link_handshake.c index 5273f3373f..9899e54231 100644 --- a/src/test/test_link_handshake.c +++ b/src/test/test_link_handshake.c @@ -7,8 +7,16 @@ #define CONNECTION_PRIVATE #define TOR_CHANNEL_INTERNAL_ #define TORTLS_PRIVATE + +#include "compat.h" + +/* Some versions of OpenSSL declare SSL_get_selected_srtp_profile twice in + * srtp.h. Suppress the GCC warning so we can build with -Wredundant-decl. */ +DISABLE_GCC_WARNING(redundant-decls) #include #include +ENABLE_GCC_WARNING(redundant-decls) + #include "or.h" #include "config.h" #include "connection.h"