Skip to content

Commit

Permalink
- Plug some warnings
Browse files Browse the repository at this point in the history
SVN Rev: 777
  • Loading branch information
derickr committed Aug 31, 2003
1 parent 4fe5007 commit 2ddcc48
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion xdebug.c
Expand Up @@ -438,6 +438,7 @@ PHP_RINIT_FUNCTION(xdebug)

ZEND_MODULE_EXEC_FINISHED_D(xdebug)
{
return SUCCESS;
}

PHP_RSHUTDOWN_FUNCTION(xdebug)
Expand Down Expand Up @@ -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);
}
Expand Down
1 change: 0 additions & 1 deletion xdebug_code_coverage.c
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions xdebug_profiler.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion xdebug_superglobals.c
Expand Up @@ -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
Expand Down

0 comments on commit 2ddcc48

Please sign in to comment.