Browse Source

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>
tags/v0.4.0-rc2
Øyvind Harboe 14 years ago
parent
commit
12618e4c6d
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/jtag/zy1000/jtag_minidriver.h

+ 2
- 3
src/jtag/zy1000/jtag_minidriver.h View File

@@ -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;


Loading…
Cancel
Save