Reduce QtNetwork lib size by 16111 bytes.

Warning message was repeated multiple times inside the library.

Change-Id: Idcd417dda22de189893db597acfc36c2aa99d078
Reviewed-by: Richard J. Moore <rich@kde.org>
bb10
Jędrzej Nowacki 2013-09-25 16:25:14 +00:00 committed by The Qt Project
parent 4aca7847be
commit bb26e087bd
1 changed files with 6 additions and 1 deletions

View File

@ -119,6 +119,11 @@ void qsslSocketUnresolvedSymbolWarning(const char *functionName)
{
qWarning("QSslSocket: cannot call unresolved function %s", functionName);
}
void qsslSocketCannotResolveSymbolWarning(const char *functionName)
{
qWarning("QSslSocket: cannot resolve %s", functionName);
}
}
#ifdef SSLEAY_MACROS
@ -345,7 +350,7 @@ DEFINEFUNC3(SSL_SESSION *, d2i_SSL_SESSION, SSL_SESSION **a, a, const unsigned c
#define RESOLVEFUNC(func) \
if (!(_q_##func = _q_PTR_##func(libs.first->resolve(#func))) \
&& !(_q_##func = _q_PTR_##func(libs.second->resolve(#func)))) \
qWarning("QSslSocket: cannot resolve "#func);
qsslSocketCannotResolveSymbolWarning(#func);
#if !defined QT_LINKED_OPENSSL