# HG changeset patch # User Rob Landley # Date 1204999634 21600 # Node ID 0bbaf23acb77237f1c5be0f8b2573670d2240db5 # Parent ba7d2de6912bb99b5297e21cf08c6abca51737cf Remove a little more unused code, removes two warnings. diff -r ba7d2de6912b -r 0bbaf23acb77 tcc.c --- a/tcc.c Sat Mar 08 12:06:21 2008 -0600 +++ b/tcc.c Sat Mar 08 12:07:14 2008 -0600 @@ -109,7 +109,6 @@ static int tcc_ext = 1; /* max number of callers shown if error */ -static int num_callers = 6; static char **rt_bound_error_msg; /* XXX: get rid of this ASAP */ @@ -193,13 +192,6 @@ return ptr1; } -static char *xstrdup(char *str) -{ - char *ptr = xmalloc(strlen(str) + 1); - strcpy(ptr, str); - return ptr; -} - void dynarray_add(void ***ptab, int *nb_ptr, void *data) { int nb, nb_alloc;