Add compile options for more warnings

This commit is contained in:
Mario Hüttel 2020-02-12 21:10:15 +01:00
parent 29fed8328c
commit 09507b5734
2 changed files with 3 additions and 1 deletions

View File

@ -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 = -c -fmessage-length=0 -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork
CFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16 -nostartfiles -O0 -g 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) OBJ = $(CFILES:%.c=$(OBJDIR)/%.c.o)

View File

@ -121,6 +121,7 @@ static shellmatta_retCode_t shell_cmd_clear_error_status(const shellmatta_handle
{ {
(void)arguments; (void)arguments;
(void)length; (void)length;
(void)handle;
adc_pt1000_clear_error(); adc_pt1000_clear_error();
@ -133,6 +134,7 @@ static shellmatta_retCode_t shell_cmd_uptime(const shellmatta_handle_t handle,
{ {
(void)arguments; (void)arguments;
(void)length; (void)length;
shellmatta_printf(handle, "Uptime: %llu secs", global_tick_ms/1000); shellmatta_printf(handle, "Uptime: %llu secs", global_tick_ms/1000);
return SHELLMATTA_OK; return SHELLMATTA_OK;
} }