From c241af9864d3419834ece49c20901e37838f9f73 Mon Sep 17 00:00:00 2001 From: dwarning Date: Wed, 16 Apr 2008 20:18:25 +0000 Subject: [PATCH] prevent unused --- src/frontend/inpcom.c | 6 +++--- src/main.c | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index a6e1e47e5..f3e96baa6 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -975,8 +975,10 @@ inp_readall(FILE *fp, struct line **data, int call_depth, char *dir_name) char *global_copy = NULL, keep_char; int line_number = 1; /* sjb - renamed to avoid confusion with struct line */ FILE *newfp; +#ifdef _DEBUG FILE *fdo; struct line *tmp_ptr1 = NULL; +#endif int i, j; bool found_library, found_lib_name, found_end = FALSE, shell_eol_continuation = FALSE; bool dir_name_flag = FALSE; @@ -2644,9 +2646,7 @@ get_number_terminals( char *c ) char *name[10]; char nam_buf[33]; bool area_found = FALSE; -#ifdef TRACE - char first_toc[32]; -#endif + switch (*c) { case 'r': case 'c': case 'l': case 'k': case 'f': case 'h': case 'b': case 'v': case 'i': case 'w': case 'd': diff --git a/src/main.c b/src/main.c index 4e3087c85..8ad9b2634 100644 --- a/src/main.c +++ b/src/main.c @@ -790,8 +790,8 @@ main(int argc, char **argv) case 'c': /* Circuit file */ if (optarg) { if (!(circuit_file = fopen(optarg, "r"))) { - perror("circuit file not available"); - sp_shutdown(EXIT_BAD); + perror("circuit file not available"); + sp_shutdown(EXIT_BAD); } istty = FALSE; } @@ -996,8 +996,10 @@ bot: current algorithm is uniform at the expense of a little startup time. */ FILE *tempfile; +#ifdef HAS_WINDOWS char *tpf; bool has_smk = FALSE; +#endif tempfile = tmpfile(); /* tmpfile() returns NULL, if in MS Windows as non admin user then we add a tempfile in the local directory */