Made _debuggerAssert()'s "message" parameter const. Fixes building with gcc4.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30502 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
bea425f17c
commit
9073b0dccc
@ -31,7 +31,7 @@ extern "C" {
|
||||
int _sPrintf(const char *, ...);
|
||||
#endif
|
||||
int _xdebugPrintf(const char *, ...);
|
||||
int _debuggerAssert(const char *, int, char *);
|
||||
int _debuggerAssert(const char *, int, const char *);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -254,7 +254,7 @@ _xdebugPrintf(const char *fmt, ...)
|
||||
|
||||
|
||||
int
|
||||
_debuggerAssert(const char *file, int line, char *message)
|
||||
_debuggerAssert(const char *file, int line, const char *message)
|
||||
{
|
||||
char buffer[1024];
|
||||
snprintf(buffer, sizeof(buffer),
|
||||
|
Loading…
Reference in New Issue
Block a user