From b5e52e98701f6ed6054543fbcefc6bc4367bfce4 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 28 Jul 2016 09:01:21 +0800 Subject: [PATCH] runtime: fix unused variable warning --- artiq/runtime/rtiocrg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/runtime/rtiocrg.c b/artiq/runtime/rtiocrg.c index 01d24b246..2851cc994 100644 --- a/artiq/runtime/rtiocrg.c +++ b/artiq/runtime/rtiocrg.c @@ -42,9 +42,9 @@ int rtiocrg_check(void) int rtiocrg_switch_clock(int clk) { +#ifdef CSR_RTIO_CRG_BASE int current_clk; -#ifdef CSR_RTIO_CRG_BASE current_clk = rtio_crg_clock_sel_read(); if(clk == current_clk) { #ifdef CSR_RTIO_CRG_PLL_RESET_ADDR