From: Øyvind Harboe Date: Fri, 25 Dec 2009 22:05:50 +0000 (+0100) Subject: zy1000: less warnings X-Git-Tag: v0.4.0-rc2~177 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=12618e4c6d07f6291e2e0c6d7f99a0945b1b67b3;p=openocd zy1000: less warnings use inline for static functions in header files to avoid warnings about fn not being used. Signed-off-by: Øyvind Harboe --- 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;