summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--profiler/profiler/src/profiler.cpp4
-rw-r--r--profiler/profiler/src/stackentry.h2
-rw-r--r--src/interpret/heaptrack_interpret.cpp4
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;
}