From f2be9d761f7b810948dd85649f652ae25d12a4f3 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Fri, 16 Dec 2011 05:07:54 +0100 Subject: [PATCH] Remove unused variables (detected with gcc-4.6) in m68k part Signed-off-by: Laurent Vivier --- second/config.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/second/config.c b/second/config.c index 7598741..5fd6362 100644 --- a/second/config.c +++ b/second/config.c @@ -180,12 +180,12 @@ int read_config(emile_l2_header_t* info, emile_config_t *econfig) }; int i; int choice; - int timeout; int current; int res; int bitrate, parity, datasize, stopbits; char *root; #if defined(USE_CLI) && defined(__LINUX__) + int timeout; int l, c; emile_window_t win; emile_list_t list; @@ -234,9 +234,11 @@ int read_config(emile_l2_header_t* info, emile_config_t *econfig) if (config_get_property(configuration, "default", property) != -1) choice = strtol(property, NULL, 0); +#if defined(USE_CLI) && defined(__LINUX__) timeout = DEFAULT_TIMEOUT; if (config_get_property(configuration, "timeout", property) != -1) timeout = strtol(property, NULL, 0); +#endif current = 0; for (index = 0; index < MAX_KERNELS; index++)