[xdebug-dev] xdebug xdebug/xdebug.c xdebug/xdebug_handler_dbgp.c - Fixed some -Wall warnings.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Mon, 1 Nov 2004 13:12:47 +0100

Date: Mon Nov 1 13:12:47 CET 2004
User: Derick Rethans
Directory: xdebug

Log Message:
[0.10]
- Fixed some -Wall warnings.

Modified files:
           xdebug/xdebug.c (version: 1.250)
           xdebug/xdebug_handler_dbgp.c (version: 1.61)

[FILE: /xdebug/xdebug.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.249
retrieving revision 1.250
diff -u -r1.249 -r1.250
--- xdebug/xdebug.c:1.249 Mon Nov 01 11:09:49 2004 GMT
+++ xdebug/xdebug.c Mon Nov 01 11:12:47 2004 GMT
@@ -1061,7 +1061,7 @@
 
         XG(level)++;
         if (XG(level) == XG(max_nesting_level)) {
- php_error(E_ERROR, "Maximum function nesting level of '%d' reached, aborting!", XG(max_nesting_level));
+ php_error(E_ERROR, "Maximum function nesting level of '%ld' reached, aborting!", XG(max_nesting_level));
         }
 
         fse = add_stack_frame(edata, op_array, XDEBUG_EXTERNAL TSRMLS_CC);
@@ -1138,7 +1138,7 @@
 
         XG(level)++;
         if (XG(level) == XG(max_nesting_level)) {
- php_error(E_ERROR, "Maximum function nesting level of '%d' reached, aborting!", XG(max_nesting_level));
+ php_error(E_ERROR, "Maximum function nesting level of '%ld' reached, aborting!", XG(max_nesting_level));
         }
 
         fse = add_stack_frame(edata, edata->op_array, XDEBUG_INTERNAL TSRMLS_CC);
@@ -1455,8 +1455,6 @@
 
 static char* return_trace_stack_frame_computerized(function_stack_entry* i, int fnr, int whence TSRMLS_DC)
 {
- int c = 0; /* Comma flag */
- int j = 0; /* Counter */
         char *tmp_name;
         xdebug_str str = {0, 0, NULL};
 

[FILE: /xdebug/xdebug_handler_dbgp.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -r1.60 -r1.61
--- xdebug/xdebug_handler_dbgp.c:1.60 Wed Oct 20 16:03:07 2004 GMT
+++ xdebug/xdebug_handler_dbgp.c Mon Nov 01 11:12:47 2004 GMT
@@ -1154,7 +1154,6 @@
         int new_length;
         int res;
         int address = 0;
- char *key = CMD_OPTION('k'); /* property key */
         char *name = CMD_OPTION('n');
         char *data = CMD_OPTION('-');
 
@@ -1589,7 +1588,7 @@
 
 char *xdebug_dbgp_get_revision(void)
 {
- return "$Revision: 1.60 $";
+ return "$Revision: 1.61 $";
 }
 
 int xdebug_dbgp_cmdloop(xdebug_con *context TSRMLS_DC)
Received on Mon Nov 01 2004 - 13:13:06 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST