diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-03 02:09:35 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-03 02:09:35 +0800 |
commit | b504f5c8b8316066abe63967781045d496df020f (patch) | |
tree | b78081d786011e660e28c9711c9e089a719c8583 /src/target | |
parent | fe353f1b9f047d23172f777510c28e035eb70d64 (diff) |
sercomm.c: Avoid unused variable compiler warning
For the host build the local_irq_save/_restore is a NOOP
and the compiler warns about the unused flags variable. Cast
it to void to avoid compiler warning.
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/firmware/comm/sercomm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/firmware/comm/sercomm.c b/src/target/firmware/comm/sercomm.c index cace0465..c78b3623 100644 --- a/src/target/firmware/comm/sercomm.c +++ b/src/target/firmware/comm/sercomm.c @@ -32,9 +32,9 @@ #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) #endif #include <sercomm.h> -#define local_irq_save(x) +#define local_irq_save(x) (void) x #define local_fiq_disable() -#define local_irq_restore(x) +#define local_irq_restore(x) (void) x #else #define SERCOMM_RX_MSG_SIZE 256 |