diff options
author | Baili Feng <bailif@codeaurora.org> | 2017-07-03 21:00:31 +0800 |
---|---|---|
committer | Yingjie Wang <yingjiewang@codeaurora.org> | 2017-08-01 18:17:20 +0800 |
commit | 4c9c7839892c4272c30dcf3288bbe4d52649bced (patch) | |
tree | 207223980b82203b9a1a092af8e90855fc91a69b /utils/LocThread.cpp | |
parent | 0c6ed3c02457e1a77b6221191c3dfb89574742ba (diff) | |
download | gps-4c9c7839892c4272c30dcf3288bbe4d52649bced.tar.gz |
Clean up compiler warning message
CRs-Fixed: 2070597
Change-Id: Ic57f5211a4e4b9112888435d54df7a361bcb6767
Diffstat (limited to 'utils/LocThread.cpp')
-rw-r--r-- | utils/LocThread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/LocThread.cpp b/utils/LocThread.cpp index 685841e..d112f61 100644 --- a/utils/LocThread.cpp +++ b/utils/LocThread.cpp @@ -65,7 +65,7 @@ public: // threashold approprietly for destroy(), e.g. mRefCount. LocThreadDelegate::LocThreadDelegate(LocThread::tCreate creator, const char* threadName, LocRunnable* runnable, bool joinable) : - mRunnable(runnable), mJoinable(joinable), mThandle(NULL), + mRunnable(runnable), mJoinable(joinable), mThandle((pthread_t)NULL), mMutex(PTHREAD_MUTEX_INITIALIZER), mRefCount(2) { // set up thread name, if nothing is passed in @@ -79,7 +79,7 @@ LocThreadDelegate::LocThreadDelegate(LocThread::tCreate creator, mThandle = creator(threadName, threadMain, this); } else if (pthread_create(&mThandle, NULL, threadMain, this)) { // pthread_create() failed - mThandle = NULL; + mThandle = (pthread_t)NULL; } if (mThandle) { |