summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2009-12-25 23:05:50 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2009-12-30 12:11:33 +0100
commit12618e4c6d07f6291e2e0c6d7f99a0945b1b67b3 (patch)
tree9bdf19c9d0da6cddf90eef62e1cc3f1ded4832d6
parentd4bef466c3781b3ee9930681509a9954aaa425a1 (diff)
downloadopenocd+libswd-12618e4c6d07f6291e2e0c6d7f99a0945b1b67b3.tar.gz
openocd+libswd-12618e4c6d07f6291e2e0c6d7f99a0945b1b67b3.tar.bz2
openocd+libswd-12618e4c6d07f6291e2e0c6d7f99a0945b1b67b3.tar.xz
openocd+libswd-12618e4c6d07f6291e2e0c6d7f99a0945b1b67b3.zip
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>
-rw-r--r--src/jtag/zy1000/jtag_minidriver.h5
1 files 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;