Add compile options for more warnings
This commit is contained in:
parent
29fed8328c
commit
09507b5734
@ -54,7 +54,7 @@ LFLAGS += -Tstm32f407vet6_flash.ld -Wl,-Map=$(mapfile).map
|
||||
|
||||
CFLAGS = -c -fmessage-length=0 -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork
|
||||
CFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16 -nostartfiles -O0 -g
|
||||
|
||||
CFLAGS += -Wall -Wextra -Wold-style-declaration -Wuninitialized -Wmaybe-uninitialized -Wunused-parameter
|
||||
####################################################################################
|
||||
|
||||
OBJ = $(CFILES:%.c=$(OBJDIR)/%.c.o)
|
||||
|
@ -121,6 +121,7 @@ static shellmatta_retCode_t shell_cmd_clear_error_status(const shellmatta_handle
|
||||
{
|
||||
(void)arguments;
|
||||
(void)length;
|
||||
(void)handle;
|
||||
|
||||
adc_pt1000_clear_error();
|
||||
|
||||
@ -133,6 +134,7 @@ static shellmatta_retCode_t shell_cmd_uptime(const shellmatta_handle_t handle,
|
||||
{
|
||||
(void)arguments;
|
||||
(void)length;
|
||||
|
||||
shellmatta_printf(handle, "Uptime: %llu secs", global_tick_ms/1000);
|
||||
return SHELLMATTA_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user