<p>How about updating the API to return <code>void</code>?</p>
<p>No one is using the return value anyway:</p>
<pre><code>boards/arduino-leonardo/board.c:41:    irq_enable();
boards/waspmote-pro/board.c:67:    irq_enable();
boards/common/msb-430/board_init.c:107:    irq_enable();
boards/common/atmega/board.c:47:    irq_enable();
boards/chronos/board_init.c:96:    irq_enable();
core/include/irq.h:50:unsigned irq_enable(void);
sys/arduino/serialport.cpp:160:    irq_enable();
drivers/motor_driver/motor_driver.c:176:    irq_enable();
drivers/motor_driver/motor_driver.c:240:    irq_enable();
cpu/native/native_cpu.c:227:        irq_enable();
cpu/native/startup.c:545:    irq_enable();
cpu/native/irq_cpu.c:214:        irq_enable();
cpu/atmega_common/thread_arch.c:218:    irq_enable();
cpu/cc430/cc430-adc.c:75:    irq_enable();
cpu/fe310/cpu.c:335:    irq_enable();
cpu/msp430_common/msp430-main.c:116:    irq_enable();
</code></pre>
<p>Unused APIs (or unused features of APIs) tend to be untested and buggy. Alternatively, I could PR a test for the correct implementation of the API.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/issues/10076?email_source=notifications&email_token=ABE7WYBBCM3CVQLHNWKPXWTQA2WZFA5CNFSM4FX3FC52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2SFTQA#issuecomment-514087360">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYAKQSNBTWDNELNC363QA2WZFANCNFSM4FX3FC5Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYFPM7PAGTELS7CJB2LQA2WZFA5CNFSM4FX3FC52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2SFTQA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/issues/10076?email_source=notifications\u0026email_token=ABE7WYBBCM3CVQLHNWKPXWTQA2WZFA5CNFSM4FX3FC52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2SFTQA#issuecomment-514087360",
"url": "https://github.com/RIOT-OS/RIOT/issues/10076?email_source=notifications\u0026email_token=ABE7WYBBCM3CVQLHNWKPXWTQA2WZFA5CNFSM4FX3FC52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2SFTQA#issuecomment-514087360",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>