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
Просмотреть файл
@@ -139,7 +139,6 @@ bool is_trace_local = true;
// SPM trace enabled
bool is_spm_trace = false;
static inline uint32_t GetPid() { return syscall(__NR_getpid); }
static inline uint32_t GetTid() { return syscall(__NR_gettid); }
// Error handler