zy1000: less warnings

use inline for static functions in header files to
avoid warnings about fn not being used.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
Øyvind Harboe 2009-12-25 23:05:50 +01:00
parent d4bef466c3
commit 12618e4c6d
1 changed files with 2 additions and 3 deletions

View File

@ -50,7 +50,7 @@ static __inline__ void waitQueue(void)
// waitIdle(); // waitIdle();
} }
static void sampleShiftRegister(void) static __inline__ void sampleShiftRegister(void)
{ {
#if 0 #if 0
cyg_uint32 dummy; cyg_uint32 dummy;
@ -59,8 +59,7 @@ static void sampleShiftRegister(void)
#endif #endif
} }
/* -O3 will inline this for us */ static __inline__ void setCurrentState(enum tap_state state)
static void setCurrentState(enum tap_state state)
{ {
cyg_uint32 a; cyg_uint32 a;
a = state; a = state;