From 12618e4c6d07f6291e2e0c6d7f99a0945b1b67b3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Harboe?= Date: Fri, 25 Dec 2009 23:05:50 +0100 Subject: [PATCH] zy1000: less warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit use inline for static functions in header files to avoid warnings about fn not being used. Signed-off-by: Øyvind Harboe --- src/jtag/zy1000/jtag_minidriver.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/jtag/zy1000/jtag_minidriver.h b/src/jtag/zy1000/jtag_minidriver.h index a78a0631..1dcf23a9 100644 --- a/src/jtag/zy1000/jtag_minidriver.h +++ b/src/jtag/zy1000/jtag_minidriver.h @@ -50,7 +50,7 @@ static __inline__ void waitQueue(void) // waitIdle(); } -static void sampleShiftRegister(void) +static __inline__ void sampleShiftRegister(void) { #if 0 cyg_uint32 dummy; @@ -59,8 +59,7 @@ static void sampleShiftRegister(void) #endif } -/* -O3 will inline this for us */ -static void setCurrentState(enum tap_state state) +static __inline__ void setCurrentState(enum tap_state state) { cyg_uint32 a; a = state; -- 2.39.5