Fix clang-cl compiler warnings
- known but unsupported action 'shared' for '#pragma section' [-Wignored-pragmas] - #include resolved using non-portable Microsoft search rules [-Wmicrosoft-include] - variable is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] Change-Id: I466352ff97a2bcf07e706c045568e581dd08a94e Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
702ffc45d6
commit
97b32fa0b6
@ -63,7 +63,7 @@ QT_BEGIN_NAMESPACE
|
||||
Q_CORE_EXPORT void qTzSet();
|
||||
Q_CORE_EXPORT time_t qMkTime(struct tm *when);
|
||||
|
||||
#if !defined(Q_CC_MSVC)
|
||||
#if !defined(Q_CC_MSVC) || defined(Q_CC_CLANG)
|
||||
Q_NORETURN
|
||||
#endif
|
||||
Q_CORE_EXPORT void qAbort();
|
||||
|
@ -159,7 +159,7 @@ using namespace Qt::StringLiterals;
|
||||
\snippet code/src_corelib_global_qglobal.cpp 4
|
||||
*/
|
||||
|
||||
#if !defined(Q_CC_MSVC)
|
||||
#if !defined(Q_CC_MSVC) || defined(Q_CC_CLANG)
|
||||
Q_NORETURN
|
||||
#endif
|
||||
static void qt_message_fatal(QtMsgType, const QMessageLogContext &context, const QString &message);
|
||||
|
@ -86,7 +86,7 @@ struct QVersionTag
|
||||
// Calling convention on other architectures does not prepend a _
|
||||
# define QT_MANGLE_IMPORT_PREFIX __imp_
|
||||
# endif
|
||||
# ifdef Q_CC_MSVC
|
||||
# if defined(Q_CC_MSVC_ONLY)
|
||||
# pragma section(".qtversion",read,shared)
|
||||
# define QT_VERSION_TAG_SECTION __declspec(allocate(".qtversion"))
|
||||
# define QT_VERSION_TAG_ATTRIBUTE __declspec(selectany) extern const
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include <QtEndian>
|
||||
|
||||
#if QT_CONFIG(mimetype_database)
|
||||
# if defined(Q_CC_MSVC)
|
||||
# if defined(Q_CC_MSVC_ONLY)
|
||||
# pragma section(".qtmimedatabase", read, shared)
|
||||
__declspec(allocate(".qtmimedatabase")) __declspec(align(4096))
|
||||
# elif defined(Q_OS_DARWIN)
|
||||
|
@ -16,10 +16,12 @@
|
||||
//
|
||||
|
||||
#include <QtNetwork/private/qtnetworkglobal_p.h>
|
||||
#include "private/qabstractsocketengine_p.h"
|
||||
|
||||
#include <QtNetwork/qnetworkproxy.h>
|
||||
|
||||
#include "qabstractsocket.h"
|
||||
#include "qnetworkproxy.h"
|
||||
#include "private/qauthenticator_p.h"
|
||||
#include "private/qabstractsocketengine_p.h"
|
||||
|
||||
QT_REQUIRE_CONFIG(http);
|
||||
|
||||
|
@ -16,8 +16,10 @@
|
||||
//
|
||||
|
||||
#include <QtNetwork/private/qtnetworkglobal_p.h>
|
||||
|
||||
#include <QtNetwork/qnetworkproxy.h>
|
||||
|
||||
#include "qabstractsocketengine_p.h"
|
||||
#include "qnetworkproxy.h"
|
||||
|
||||
QT_REQUIRE_CONFIG(socks5);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user