From 2ddcc486bf9ad155f84400df993779310852a894 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Sun, 31 Aug 2003 10:54:06 +0000 Subject: [PATCH] - Plug some warnings SVN Rev: 777 --- xdebug.c | 3 ++- xdebug_code_coverage.c | 1 - xdebug_profiler.c | 6 +++--- xdebug_superglobals.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/xdebug.c b/xdebug.c index 572ce2bff..62b5f7401 100644 --- a/xdebug.c +++ b/xdebug.c @@ -438,6 +438,7 @@ PHP_RINIT_FUNCTION(xdebug) ZEND_MODULE_EXEC_FINISHED_D(xdebug) { + return SUCCESS; } PHP_RSHUTDOWN_FUNCTION(xdebug) @@ -855,7 +856,7 @@ static inline void print_stack(int html, const char *error_type_str, char *buffe } else { php_printf("%10.4f ", i->time - XG(start_time)); #if MEMORY_LIMIT - php_printf("%10lu ", i->memory); + php_printf("%10u ", i->memory); #endif php_printf("%3d. %s(", i->level, tmp_name); } diff --git a/xdebug_code_coverage.c b/xdebug_code_coverage.c index ba4a36911..490c3c796 100644 --- a/xdebug_code_coverage.c +++ b/xdebug_code_coverage.c @@ -111,7 +111,6 @@ static void add_file(void *ret, xdebug_hash_element *e) zval *retval = (zval*) ret; zval *lines; HashTable *target_hash; - long sort_type = 0; /* SORT_REGULAR; */ TSRMLS_FETCH(); MAKE_STD_ZVAL(lines); diff --git a/xdebug_profiler.c b/xdebug_profiler.c index 7f72c4abf..bf5bb2d0a 100644 --- a/xdebug_profiler.c +++ b/xdebug_profiler.c @@ -609,7 +609,7 @@ static inline void fetch_full_function_name(function_stack_entry *ent, char *buf void print_profile(int html, int mode TSRMLS_DC) { - FILE *data_output; + FILE *data_output = stdout; char **mode_titles; double total_time = get_mtimestamp() - XG(total_execution_time); double total_function_exec = 0.0; @@ -1005,7 +1005,7 @@ PHP_FUNCTION(xdebug_get_function_profile) break; } default: - php_error(E_WARNING, "'%l' is not a valid profiling flag\n", profile_flag); + php_error(E_WARNING, "'%ld' is not a valid profiling flag\n", profile_flag); err: RETURN_FALSE; break; @@ -1108,7 +1108,7 @@ PHP_FUNCTION(xdebug_dump_function_profile) RETURN_FALSE; } if (profile_flag < 0 || profile_flag >= XDEBUG_PROFILER_MODES) { - php_error(E_WARNING, "'%d' is not a valid profiling flag\n", profile_flag); + php_error(E_WARNING, "'%ld' is not a valid profiling flag\n", profile_flag); RETURN_FALSE; } print_profile(PG(html_errors), profile_flag TSRMLS_CC); diff --git a/xdebug_superglobals.c b/xdebug_superglobals.c index dad5d6157..302cd3442 100644 --- a/xdebug_superglobals.c +++ b/xdebug_superglobals.c @@ -71,7 +71,7 @@ static void dump_hash_elem(zval *z, char *name, char *elem, int html, int log TS static int dump_hash_elem_va(void *pDest, int num_args, va_list args, zend_hash_key *hash_key) { int html, log; - char *name, *val = get_zval_value((zval *) pDest); + char *name; #ifdef ZTS void ***tsrm_ls; #endif