summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2014-03-14 16:11:38 +0700
committerhathach <[email protected]>2014-03-14 16:11:38 +0700
commit4f1ae1cd1d651fdd7fd3e02081b05a7528e96ba7 (patch)
tree051907469ea7cc108dcef2d323544ca22e6318b2
parent16df2a2f621d84107ed27d3df39e618c522cd027 (diff)
clean up more warnings
-rw-r--r--demos/host/host_os_none/.cproject2
-rw-r--r--tinyusb/host/ohci/ohci.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/demos/host/host_os_none/.cproject b/demos/host/host_os_none/.cproject
index 6a5b7c0be..62ccf0e0a 100644
--- a/demos/host/host_os_none/.cproject
+++ b/demos/host/host_os_none/.cproject
@@ -1567,7 +1567,7 @@
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.crt.advproject.config.exe.debug.1239969983.636406670" moduleId="org.eclipse.cdt.core.settings" name="Board EA4357">
<macros>
<stringMacro name="CFLAGS_OFF" type="VALUE_TEXT" value=""/>
- <stringMacro name="CFLAGS" type="VALUE_TEXT" value="${CFLAGS_ON}"/>
+ <stringMacro name="CFLAGS" type="VALUE_TEXT" value="${CFLAGS_OFF}"/>
<stringMacro name="CFLAGS_ON" type="VALUE_TEXT" value="-Wextra -Wswitch-default -Wunsafe-loop-optimizations -Wcast-align -Wlogical-op -Wpacked-bitfield-compat -Wnested-externs -Wredundant-decls -Winline"/>
</macros>
<externalSettings/>
diff --git a/tinyusb/host/ohci/ohci.c b/tinyusb/host/ohci/ohci.c
index 5bd7db475..c1cdc3ea2 100644
--- a/tinyusb/host/ohci/ohci.c
+++ b/tinyusb/host/ohci/ohci.c
@@ -660,7 +660,8 @@ static void done_queue_isr(uint8_t hostid)
void hcd_isr(uint8_t hostid)
{
- uint32_t int_status = OHCI_REG->interrupt_status & OHCI_REG->interrupt_enable;
+ uint32_t const int_en = OHCI_REG->interrupt_enable;
+ uint32_t const int_status = OHCI_REG->interrupt_status & int_en;
if (int_status == 0) return;