aboutsummaryrefslogtreecommitdiffstats
path: root/wirish
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2014-10-15 14:24:38 +0800
committerbryan newbold <bnewbold@twinleaf.com>2014-11-26 01:10:51 -0800
commit91f5b9ec4f37f99be235a460e4f6d924ec2cf2a9 (patch)
treedf9a4cae02fb9c9708bac8aebee989211427b431 /wirish
parent485a74ab909a6d71a713ccbccdb093fcb3dfd309 (diff)
downloadlibrambutan-91f5b9ec4f37f99be235a460e4f6d924ec2cf2a9.tar.gz
librambutan-91f5b9ec4f37f99be235a460e4f6d924ec2cf2a9.zip
Squash some GCC __always_inline warnings.
Change from __always_inline to plain inline to silence warnings about possibly non-inlinable functions. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'wirish')
-rw-r--r--wirish/include/wirish/ext_interrupts.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/wirish/include/wirish/ext_interrupts.h b/wirish/include/wirish/ext_interrupts.h
index ce1ca03..7b82c40 100644
--- a/wirish/include/wirish/ext_interrupts.h
+++ b/wirish/include/wirish/ext_interrupts.h
@@ -106,7 +106,7 @@ void detachInterrupt(uint8 pin);
*
* @see noInterrupts()
*/
-static __always_inline void interrupts() {
+static inline void interrupts() {
nvic_globalirq_enable();
}
@@ -120,7 +120,7 @@ static __always_inline void interrupts() {
*
* @see interrupts()
*/
-static __always_inline void noInterrupts() {
+static inline void noInterrupts() {
nvic_globalirq_disable();
}