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 */

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