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


[ROCm/rocprofiler commit: ee917344ff]
이 커밋은 다음에 포함됨:
Xianwei Zhang
2019-06-06 11:23:48 -05:00
부모 0762516023
커밋 3dce66bd80
7개의 변경된 파일과 6개의 추가작업 그리고 7개의 파일을 삭제
+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;
}