diff options
author | Mikhail Kurinnoi <m.kurinnoi@samsung.net> | 2019-10-02 10:32:39 +0300 |
---|---|---|
committer | 이형주/Common Platform Lab(SR)/Staff Engineer/삼성전자 <leee.lee@samsung.com> | 2019-10-04 08:47:28 +0900 |
commit | 37a9491baff3c892cb6f0e789e1ebeccd6bf155e (patch) | |
tree | dfd7135fea606604cfbba14f3af471a925836ac2 | |
parent | 14da866f8f30c3e0d6302518f58330d48bfff91f (diff) | |
download | heaptrack-tizen_5.5_tv.tar.gz heaptrack-tizen_5.5_tv.tar.bz2 heaptrack-tizen_5.5_tv.zip |
Fix compilation warnings.tizen_5.5.m2_releasesubmit/tizen_5.5_mobile_hotfix/20201027.114301submit/tizen_5.5_mobile_hotfix/20201026.1851010submit/tizen_5.5/20191031.000009submit/tizen/20191004.002717accepted/tizen/unified/20191006.223640accepted/tizen/5.5/unified/mobile/hotfix/20201027.061012accepted/tizen/5.5/unified/20191031.004502tizen_5.5_tvtizen_5.5_mobile_hotfixaccepted/tizen_5.5_unified_mobile_hotfix
-rw-r--r-- | profiler/profiler/src/profiler.cpp | 4 | ||||
-rw-r--r-- | profiler/profiler/src/stackentry.h | 2 | ||||
-rw-r--r-- | src/interpret/heaptrack_interpret.cpp | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/profiler/profiler/src/profiler.cpp b/profiler/profiler/src/profiler.cpp index 4391e11..1411577 100644 --- a/profiler/profiler/src/profiler.cpp +++ b/profiler/profiler/src/profiler.cpp @@ -88,8 +88,8 @@ extern __thread StackEntry* g_shadowStack; __thread StackEntry* g_freeStackEntryListItems = nullptr; StackEntry::StackEntry(unsigned int funcId, - char* className, - char* methodName, + const char* className, + const char* methodName, bool isType, StackEntry *next) : m_funcId(funcId), m_isType(isType), m_next(next) diff --git a/profiler/profiler/src/stackentry.h b/profiler/profiler/src/stackentry.h index 9757c18..53cf27f 100644 --- a/profiler/profiler/src/stackentry.h +++ b/profiler/profiler/src/stackentry.h @@ -6,7 +6,7 @@ static constexpr size_t MAX_NAME_LENGTH = 512; class StackEntry { public: - StackEntry(unsigned int funcId, char* className, char* methodName, bool isType, StackEntry *next); + StackEntry(unsigned int funcId, const char* className, const char* methodName, bool isType, StackEntry *next); unsigned int m_funcId; char m_className[MAX_NAME_LENGTH + 1]; diff --git a/src/interpret/heaptrack_interpret.cpp b/src/interpret/heaptrack_interpret.cpp index bda498b..23d0431 100644 --- a/src/interpret/heaptrack_interpret.cpp +++ b/src/interpret/heaptrack_interpret.cpp @@ -496,7 +496,7 @@ outStream* createStream(const char* fileName) unsetenv("DUMP_HEAPTRACK_SOCKET_PROMPT"); } - fprintf(stderr, "will write to socket/%p\n", tmpStream); + fprintf(stderr, "will write to socket/%p\n", (void*)tmpStream); return tmpStream; } @@ -508,7 +508,7 @@ outStream* createStream(const char* fileName) boost::replace_all(outputFileName, "$$", to_string(getpid())); auto out = OpenStream<outStreamFILE, const char*>(outputFileName.c_str()); - fprintf(stderr, "will write to %s/%p\n", outputFileName.c_str(), out); + fprintf(stderr, "will write to %s/%p\n", outputFileName.c_str(), (void*)out); return out; } |