mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-09 05:28:09 +08:00
Fixes some CLANG warnings (QtC IDE checks, nevertheless does not harm to fix them)
This commit is contained in:
committed by
Mat Sutcliffe
parent
15ced5a77f
commit
86c8568bf2
@@ -65,7 +65,7 @@ namespace BlackConfig
|
|||||||
{
|
{
|
||||||
if (CBuildConfig::buildWordSize() == 32) return QString("Win32");
|
if (CBuildConfig::buildWordSize() == 32) return QString("Win32");
|
||||||
if (CBuildConfig::buildWordSize() == 64) return QString("Win64");
|
if (CBuildConfig::buildWordSize() == 64) return QString("Win64");
|
||||||
};
|
}
|
||||||
return QString("unknown");
|
return QString("unknown");
|
||||||
}());
|
}());
|
||||||
return p;
|
return p;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
#if defined(Q_CC_MSVC)
|
#if defined(Q_CC_MSVC)
|
||||||
#include <intrin.h>
|
#include <intrin.h>
|
||||||
#include <windows.h>
|
#include <Windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(Q_CC_CLANG)
|
#if defined(Q_CC_CLANG)
|
||||||
@@ -35,12 +35,12 @@ namespace BlackMisc
|
|||||||
// cppcheck-suppress unusedFunction
|
// cppcheck-suppress unusedFunction
|
||||||
void failedVerify(const char *condition, const char *filename, int line, const char *context, const char *message, bool audit)
|
void failedVerify(const char *condition, const char *filename, int line, const char *context, const char *message, bool audit)
|
||||||
{
|
{
|
||||||
Q_UNUSED(condition);
|
Q_UNUSED(condition)
|
||||||
Q_UNUSED(filename);
|
Q_UNUSED(filename)
|
||||||
Q_UNUSED(line);
|
Q_UNUSED(line)
|
||||||
Q_UNUSED(context);
|
Q_UNUSED(context)
|
||||||
Q_UNUSED(message);
|
Q_UNUSED(message)
|
||||||
Q_UNUSED(audit);
|
Q_UNUSED(audit)
|
||||||
|
|
||||||
#if defined(QT_DEBUG)
|
#if defined(QT_DEBUG)
|
||||||
# if defined(Q_CC_MSVC)
|
# if defined(Q_CC_MSVC)
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
#pragma push_macro("interface")
|
#pragma push_macro("interface")
|
||||||
#undef interface
|
#undef interface
|
||||||
|
|
||||||
#include <windows.h>
|
#include <Windows.h>
|
||||||
#include <SimConnect.h>
|
#include <SimConnect.h>
|
||||||
|
|
||||||
#pragma pop_macro("interface")
|
#pragma pop_macro("interface")
|
||||||
|
|||||||
Reference in New Issue
Block a user