Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove warnings #561

Merged
merged 4 commits into from
Apr 8, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sw/lib/source/neorv32_rte.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ void neorv32_rte_setup(void) {
}
}

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wtype-limits"

/**********************************************************************//**
* Install trap handler function to NEORV32 runtime environment.
Expand Down Expand Up @@ -119,6 +121,8 @@ int neorv32_rte_handler_uninstall(uint8_t id) {
return 1;
}

#pragma GCC diagnostic pop


/**********************************************************************//**
* This is the [private!] core of the NEORV32 RTE.
Expand Down
4 changes: 2 additions & 2 deletions sw/lib/source/neorv32_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ int neorv32_uart_available (neorv32_uart_t *UARTx) {

int available = 0;

if ( ((int)UARTx == NEORV32_UART0_BASE) && (NEORV32_SYSINFO->SOC & (1 << SYSINFO_SOC_IO_UART0)) ) {
if ( ((uint32_t)UARTx == NEORV32_UART0_BASE) && (NEORV32_SYSINFO->SOC & (1 << SYSINFO_SOC_IO_UART0)) ) {
available = 1;
}
if ( ((int)UARTx == NEORV32_UART1_BASE) && (NEORV32_SYSINFO->SOC & (1 << SYSINFO_SOC_IO_UART1)) ) {
if ( ((uint32_t)UARTx == NEORV32_UART1_BASE) && (NEORV32_SYSINFO->SOC & (1 << SYSINFO_SOC_IO_UART1)) ) {
available = 1;
}
return(available);
Expand Down