aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/shared
diff options
context:
space:
mode:
authorIvan Donchevskii <[email protected]>2018-06-20 13:15:24 +0200
committerIvan Donchevskii <[email protected]>2018-06-20 12:56:19 +0000
commit50fb1b497227509fb0eb8ce6290a6f29f28d52ed (patch)
tree3902ce6e0cf162ec720439a4b01418255db7bbce /src/plugins/debugger/shared
parent3c0f61ef0b24833fd996b1de785884c70bfedd7f (diff)
Fix Qt Creator build with Clang
Change-Id: Id607170961db5b1919b316293a96ae3330216377 Reviewed-by: Tobias Hunger <[email protected]>
Diffstat (limited to 'src/plugins/debugger/shared')
-rw-r--r--src/plugins/debugger/shared/hostutils.cpp4
-rw-r--r--src/plugins/debugger/shared/hostutils.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/debugger/shared/hostutils.cpp b/src/plugins/debugger/shared/hostutils.cpp
index 4f2fad99c6c..5a65d5a6ea7 100644
--- a/src/plugins/debugger/shared/hostutils.cpp
+++ b/src/plugins/debugger/shared/hostutils.cpp
@@ -193,7 +193,7 @@ bool isDebuggerWinException(unsigned long code)
return code == EXCEPTION_BREAKPOINT || code == EXCEPTION_SINGLE_STEP;
}
-bool isFatalWinException(long code)
+bool isFatalWinException(unsigned long code)
{
switch (code) {
case EXCEPTION_BREAKPOINT:
@@ -217,7 +217,7 @@ bool winResumeThread(unsigned long, QString *) { return false; }
bool isWinProcessBeingDebugged(unsigned long) { return false; }
void formatWindowsException(unsigned long , quint64, unsigned long,
quint64, quint64, QTextStream &) { }
-bool isFatalWinException(long) { return false; }
+bool isFatalWinException(unsigned long) { return false; }
bool isDebuggerWinException(unsigned long) { return false; }
#endif // !Q_OS_WIN
diff --git a/src/plugins/debugger/shared/hostutils.h b/src/plugins/debugger/shared/hostutils.h
index 33485308670..1f35233dc04 100644
--- a/src/plugins/debugger/shared/hostutils.h
+++ b/src/plugins/debugger/shared/hostutils.h
@@ -40,7 +40,7 @@ bool winResumeThread(unsigned long dwThreadId, QString *errorMessage);
bool isWinProcessBeingDebugged(unsigned long pid);
// Special exception codes.
-enum
+enum : unsigned long
{
winExceptionCppException = 0xe06d7363,
winExceptionSetThreadName = 0x406d1388,
@@ -60,7 +60,7 @@ void formatWindowsException(unsigned long code, quint64 address,
unsigned long flags, quint64 info1, quint64 info2,
QTextStream &str);
// Check for access violation, etc.
-bool isFatalWinException(long code);
+bool isFatalWinException(unsigned long code);
// Check for EXCEPTION_BREAKPOINT, EXCEPTION_SINGLE_STEP
bool isDebuggerWinException(unsigned long code);