From f42e7da2955d546849c0468259e6de16c926cfb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 8 Aug 2017 20:12:03 +0200 Subject: [PATCH] GUI: Minor updates when checking with Clang --- gui/checkthread.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gui/checkthread.cpp b/gui/checkthread.cpp index 2ef7f0d86..0a33a954e 100644 --- a/gui/checkthread.cpp +++ b/gui/checkthread.cpp @@ -118,6 +118,9 @@ void CheckThread::runAddons(const QString &addonPath, const ImportProject::FileS if (!fileSettings) continue; + if (!fileSettings->cfg.empty() && fileSettings->cfg.find("Debug") != std::string::npos) + continue; + QStringList args; for (std::list::const_iterator I = fileSettings->includePaths.begin(); I != fileSettings->includePaths.end(); ++I) args << ("-I" + QString::fromStdString(*I)); @@ -149,7 +152,7 @@ void CheckThread::runAddons(const QString &addonPath, const ImportProject::FileS } } - args << "-fno-ms-compatibility"; + args << "-U__STDC__" << "-fno-ms-compatibility"; #endif if (!fileSettings->standard.empty())