Fix some new warnings found in build testing.

This commit is contained in:
Gregory Nutt 2019-06-29 13:24:38 -06:00
parent 005a077310
commit 35521ab2b6
3 changed files with 10 additions and 4 deletions

View File

@ -48,6 +48,7 @@
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/wdog.h>
#include <nuttx/clock.h>
#include <arch/board/board.h>

View File

@ -86,6 +86,11 @@
# define CONSOLE_2STOP CONFIG_UART3_2STOP
#elif defined(HAVE_CONSOLE)
# error "No CONFIG_UARTn_SERIAL_CONSOLE Setting"
# define CONSOLE_BASE LPC17_UART0_BASE
# define CONSOLE_BAUD 115200
# define CONSOLE_BITS 8
# define CONSOLE_PARITY 0
# define CONSOLE_2STOP 0
#endif
/* Get word length setting for the console */
@ -99,7 +104,7 @@
#elif CONSOLE_BITS == 8
# define CONSOLE_LCR_WLS UART_LCR_WLS_8BIT
#elif defined(HAVE_CONSOLE)
# error "Invalid CONFIG_UARTn_BITS setting for console "
# error "Invalid CONFIG_UARTn_BITS setting for console"
#endif
/* Get parity setting for the console */
@ -115,7 +120,7 @@
#elif CONSOLE_PARITY == 4
# define CONSOLE_LCR_PAR (UART_LCR_PE|UART_LCR_PS_STICK0)
#elif defined(HAVE_CONSOLE)
# error "Invalid CONFIG_UARTn_PARITY setting for CONSOLE"
# error "Invalid CONFIG_UARTn_PARITY setting for CONSOLE"
#endif
/* Get stop-bit setting for the console and UART0-3 */

View File

@ -1563,10 +1563,10 @@ int main(int argc, char **argv, char **envp)
else if (indent > 0)
{
/* REVISIT: Generates false alarms when a statement continues on
* the next line. The bstatm check limits to lines beginnnig with
* the next line. The bstatm check limits to lines beginning with
* C keywords.
* REVISIT: The bstatm check will not detect statements that
* do not begin with a C keyword (such as assignement statements).
* do not begin with a C keyword (such as assignment statements).
* REVISIT: Generates false alarms on comments at the end of
* the line if there is nothing preceding (such as the aligned
* comments with a structure field definition). So disabled for