diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2017-06-08 11:30:44 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2017-06-13 06:32:50 +0000 |
commit | 9a73b7ac96453963693d69ebd71691636d90a154 (patch) | |
tree | 6740a7384ddc85cfad1bc47484d081a6943ed478 /src | |
parent | 65a317e6745ee267bef7295f4dfe31d5ec62f7aa (diff) |
QLogging: Fix unused static function warning
Detected by clang
Change-Id: Ia7d1bf085d838d19319ee1060dcb3c0086a510e4
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/global/qlogging.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp index 6a91b2cfd0..b5ba935194 100644 --- a/src/corelib/global/qlogging.cpp +++ b/src/corelib/global/qlogging.cpp @@ -254,7 +254,7 @@ Q_CORE_EXPORT bool qt_logging_to_console() \sa QMessageLogContext, qDebug(), qInfo(), qWarning(), qCritical(), qFatal() */ -#ifdef Q_OS_WIN +#if defined(Q_CC_MSVC) && defined(QT_DEBUG) && defined(_DEBUG) && defined(_CRT_ERROR) static inline void convert_to_wchar_t_elided(wchar_t *d, size_t space, const char *s) Q_DECL_NOEXCEPT { size_t len = qstrlen(s); |