build: slightly change files to pass compilation

Compiled using Clang and encountered errors on ambiguous pointer
type, implicit conversion NULL to bool, and unused function, etc.
As a fix, this patch slightly updates the related codes.

Change-Id: I4a73d66293313dda36749036f5c73aaf2a445231
이 커밋은 다음에 포함됨:
Xianwei Zhang가 2019-08-22 23:29:16 -04:00를 커밋했습니다
1 부모 4a9c36b32c
커밋 ee917344ff
7 파일이 변경됨
+6 -7

검색과 일치하는 파일 없음

+1 -1
파일 보기
@@ -83,7 +83,7 @@ class Tracker {
static void Destroy() {
std::lock_guard<mutex_t> lck(glob_mutex_);
if (instance_ != NULL) delete instance_;
if (instance_ != NULL) delete instance_.load();
instance_ = NULL;
}
+1 -1
파일 보기
@@ -226,7 +226,7 @@ class HsaRsrcFactory {
static void Destroy() {
std::lock_guard<mutex_t> lck(mutex_);
if (instance_) delete instance_;
if (instance_) delete instance_.load();
instance_ = NULL;
}
+1 -1
파일 보기
@@ -90,7 +90,7 @@ class Logger {
static void Destroy() {
std::lock_guard<mutex_t> lck(mutex_);
if (instance_ != NULL) delete instance_;
if (instance_ != NULL) delete instance_.load();
instance_ = NULL;
}