]> git.sur5r.net Git - openocd/commitdiff
zy1000: less warnings
authorØyvind Harboe <oyvind.harboe@zylin.com>
Fri, 25 Dec 2009 22:05:50 +0000 (23:05 +0100)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 30 Dec 2009 11:11:33 +0000 (12:11 +0100)
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>
src/jtag/zy1000/jtag_minidriver.h

index a78a0631a965151d2dd6aa06e50898cbc5981668..1dcf23a98af6cacb297bd8f3d6b37b7f767c2fd7 100644 (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;