Quellcode durchsuchen

'unused variable' compiler warning fixed

Gergely Kovacs vor 17 Jahren
Ursprung
Commit
38b2c0944c
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      cfg_parser.c

+ 1 - 1
cfg_parser.c

@@ -249,10 +249,10 @@ cfg_option_t cfg_bool_values[] = {
 
 
 static void print_token(cfg_token_t* token)
 static void print_token(cfg_token_t* token)
 {
 {
+#ifdef EXTRA_DEBUG
 	int i, j;
 	int i, j;
 	char* buf;
 	char* buf;
 
 
-#ifdef EXTRA_DEBUG
 	if ((buf = pkg_malloc(token->val.len * 2)) == NULL) {
 	if ((buf = pkg_malloc(token->val.len * 2)) == NULL) {
 		DBG("token(%d, '%.*s', <%d,%d>-<%d,%d>)\n", 
 		DBG("token(%d, '%.*s', <%d,%d>-<%d,%d>)\n", 
 			token->type, STR_FMT(&token->val),
 			token->type, STR_FMT(&token->val),