From e640c61b78d20e7926bd8b7b253cdff876a9af7f Mon Sep 17 00:00:00 2001 From: fros4943 Date: Mon, 29 Mar 2010 12:57:57 +0000 Subject: [PATCH] commented unused functions --- platform/sky/checkpoint-arch.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/platform/sky/checkpoint-arch.c b/platform/sky/checkpoint-arch.c index 7ebb1b055..209c41f23 100644 --- a/platform/sky/checkpoint-arch.c +++ b/platform/sky/checkpoint-arch.c @@ -118,7 +118,10 @@ static uint8_t preset_cmd; static int preset_fd; /* bookkeeping */ -static int nr_pongs=0, nr_checkpoints=0, nr_rollbacks=0, nr_metrics=0; +#if WITH_SERIAL_COMMANDS +static int nr_pongs=0; +#endif /* WITH_SERIAL_COMMANDS */ +static int nr_checkpoints=0, nr_rollbacks=0, nr_metrics=0; /*---------------------------------------------------------------------------*/ typedef union { @@ -283,6 +286,7 @@ thread_rollback(int fd) read_byte(fd); /* Coffee padding byte */ } /*---------------------------------------------------------------------------*/ +#if WITH_SERIAL_COMMANDS static uint32_t thread_metric_tx(void) { @@ -296,6 +300,7 @@ thread_metric_rx(void) energest_flush(); return energest_type_time(ENERGEST_TYPE_LISTEN); } +#endif /* WITH_SERIAL_COMMANDS */ /*---------------------------------------------------------------------------*/ static void thread_metrics(void)