1
0
mirror of https://github.com/elua/elua.git synced 2025-01-25 01:02:54 +08:00

eLua - suppress warnings in common_uart.c, shell.c

This commit is contained in:
ecdr 2013-08-12 00:27:53 -07:00
parent 88257cdc9a
commit cd2e263329
2 changed files with 4 additions and 0 deletions

View File

@ -92,6 +92,7 @@ int platform_uart_recv( unsigned id, unsigned timer_id, timer_data_type timeout
}
}
#ifdef BUF_ENABLE_UART
static void cmn_rx_handler( int usart_id, u8 data )
{
#ifdef BUILD_SERMUX
@ -131,6 +132,7 @@ static void cmn_rx_handler( int usart_id, u8 data )
#endif // #ifdef BUILD_SERMUX
buf_write( BUF_ID_UART, usart_id, ( t_buf_data* )&data );
}
#endif // #ifdef BUF_ENABLE_UART
// Send: version with and without mux
void platform_uart_send( unsigned id, u8 data )

View File

@ -368,7 +368,9 @@ void shell_start()
{
char cmd[ SHELL_MAXSIZE + 1 ];
const SHELL_COMMAND *pcmd;
#ifdef BUILD_UIP
int i;
#endif
printf( SHELL_WELCOMEMSG, ELUA_STR_VERSION );
while( 1 )