8000 Reduce the number of compiler warnings · arduino/ArduinoCore-renesas@75c3586 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 75c3586

Browse files
committed
Reduce the number of compiler warnings
Resolves #77 At least partially. I did not go into the API class to fix the printf statement issue.
1 parent 1c9b086 commit 75c3586

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

cores/arduino/IRQManager.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ bool IRQManager::addPeripheral(Peripheral_t p, void *cfg) {
342342
if(p == IRQ_USB && cfg != NULL) {
343343
USBIrqCfg_t *irqcfg = (USBIrqCfg_t *)cfg;
344344

345-
if (irqcfg->first_irq_number != FSP_INVALID_VECTOR) {
345+
if (irqcfg->first_irq_number != (uint32_t)FSP_INVALID_VECTOR) {
346346
// already configured, return
347347
goto end_config;
348348
}
@@ -405,7 +405,7 @@ bool IRQManager::addPeripheral(Peripheral_t p, void *cfg) {
405405
else if(p == IRQ_USB_HS && cfg != NULL) {
406406
USBIrqCfg_t *irqcfg = (USBIrqCfg_t *)cfg;
407407

408-
if (irqcfg->first_irq_number != FSP_INVALID_VECTOR) {
408+
if (irqcfg->first_irq_number != (uint32_t)FSP_INVALID_VECTOR) {
409409
// already configured, return
410410
goto end_config;
411411
}
@@ -1659,7 +1659,7 @@ void IRQManager::set_can_tx_link_event(int li, int ch)
16591659
#endif
16601660
}
16611661

1662-
void IRQManager::set_canfd_error_link_event(int li, int ch)
1662+
void IRQManager::set_canfd_error_link_event(__attribute__((unused)) int li, __attribute__((unused)) int ch)
16631663
{
16641664
if (0) {}
16651665
#ifdef ELC_EVENT_CAN0_CHERR
@@ -1674,7 +1674,7 @@ void IRQManager::set_canfd_error_link_event(int li, int ch)
16741674
#endif
16751675
}
16761676

1677-
void IRQManager::set_canfd_rx_link_event(int li, int ch)
1677+
void IRQManager::set_canfd_rx_link_event(__attribute__((unused)) int li, __attribute__((unused)) int ch)
16781678
{
16791679
if (0) {}
16801680
#ifdef ELC_EVENT_CAN0_COMFRX
@@ -1689,7 +1689,7 @@ void IRQManager::set_canfd_rx_link_event(int li, int ch)
16891689
#endif
16901690
}
16911691

1692-
void IRQManager::set_canfd_tx_link_event(int li, int ch)
1692+
void IRQManager::set_canfd_tx_link_event(__attribute__((unused)) int li, __attribute__((unused)) int ch)
16931693
{
16941694
if (0) {}
16951695
#ifdef ELC_EVENT_CAN0_TX

cores/arduino/cm_backtrace/cm_backtrace.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ static const char * const print_info[] = {
117117
#endif
118118
};
119119

120-
static char* fw_name;
121-
static char* hw_ver;
122-
static char* sw_ver;
120+
static const char* fw_name;
121+
static const char* hw_ver;
122+
static const char* sw_ver;
123123
static uint32_t main_stack_start_addr = 0;
124124
static size_t main_stack_size = 0;
125125
static uint32_t code_start_addr = 0;

0 commit comments

Comments
 (0)
0