summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2014-09-07 00:45:18 +0200
committerSlávek Banko <slavek.banko@axis.cz>2014-09-07 00:45:18 +0200
commita28cbf4837fbb1094ff790bf53cbec2dcab94a60 (patch)
tree67b93b07f647055184c80dda27a55d09fc1843af /src/tools
parent7b43eed24a592feae9b6ba8fa338fb9737bf089f (diff)
downloadqt3-a28cbf4837fbb1094ff790bf53cbec2dcab94a60.tar.gz
qt3-a28cbf4837fbb1094ff790bf53cbec2dcab94a60.zip
Fix FTBFS because invalid data conversion in qmutex
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/qmutex_unix.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/qmutex_unix.cpp b/src/tools/qmutex_unix.cpp
index de0f909..6934253 100644
--- a/src/tools/qmutex_unix.cpp
+++ b/src/tools/qmutex_unix.cpp
@@ -72,6 +72,7 @@ typedef pthread_mutex_t Q_MUTEX_T;
#include "qmutex_p.h"
#include <errno.h>
+#include <stdint.h>
#include <string.h>
// Private class declarations
@@ -270,8 +271,8 @@ void QRecursiveMutexPrivate::unlock()
} else {
#ifdef QT_CHECK_RANGE
qWarning("QMutex::unlock: unlock from different thread than locker");
- qWarning(" was locked by %d, unlock attempt from %d",
- (int)owner, (int)pthread_self());
+ qWarning(" was locked by %d, unlock attempt from %lu",
+ (int)owner, (uintptr_t)pthread_self());
#endif
}