diff options
author | Haru <haru@dotalux.com> | 2015-06-15 20:20:30 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-06-19 12:38:06 +0200 |
commit | 97a41b5b834ef0d37240bc004028952be9f17aee (patch) | |
tree | 9b6df90c00d895019e210ead18cf1a150d31be0e /src | |
parent | ec7241c953392938cd3a8740bacb4c869636766f (diff) | |
download | hercules-97a41b5b834ef0d37240bc004028952be9f17aee.tar.gz hercules-97a41b5b834ef0d37240bc004028952be9f17aee.tar.bz2 hercules-97a41b5b834ef0d37240bc004028952be9f17aee.tar.xz hercules-97a41b5b834ef0d37240bc004028952be9f17aee.zip |
Fixed a warning in the backtrace() function
On some systems it returns size_t instead of int.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/common/nullpo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/nullpo.c b/src/common/nullpo.c index 97b206835..d494822fa 100644 --- a/src/common/nullpo.c +++ b/src/common/nullpo.c @@ -43,11 +43,11 @@ void assert_report(const char *file, int line, const char *func, const char *tar ShowError("--- %s --------------------------------------------\n", title); ShowError("%s:%d: '%s' in function `%s'\n", file, line, targetname, func); #ifdef __GNUC__ - size = backtrace (array, 10); - strings = backtrace_symbols (array, size); + size = (int)backtrace(array, 10); + strings = backtrace_symbols(array, size); for (i = 0; i < size; i++) ShowError("%s\n", strings[i]); - free (strings); + free(strings); #endif ShowError("--- end %s ----------------------------------------\n", title); } |