From 97a41b5b834ef0d37240bc004028952be9f17aee Mon Sep 17 00:00:00 2001 From: Haru Date: Mon, 15 Jun 2015 20:20:30 +0200 Subject: Fixed a warning in the backtrace() function On some systems it returns size_t instead of int. Signed-off-by: Haru --- src/common/nullpo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3-60-g2f50