From 0cd287e67b900dcbd3febd561d5300b2322b5b86 Mon Sep 17 00:00:00 2001 From: Johny Mattsson Date: Fri, 22 Jan 2016 10:55:57 +1100 Subject: [PATCH] Added -Wimplicit to modules build. Plus associated fixes. --- Makefile | 4 ++-- app/include/lwipopts.h | 1 - app/modules/Makefile | 2 +- app/modules/tmr.c | 1 + app/platform/platform.h | 1 + 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 673a2896..04045832 100644 --- a/Makefile +++ b/Makefile @@ -131,8 +131,8 @@ CCFLAGS += \ -mtext-section-literals # -Wall -CFLAGS = $(CCFLAGS) $(DEFINES) $(EXTRA_CCFLAGS) $(INCLUDES) -DFLAGS = $(CCFLAGS) $(DDEFINES) $(EXTRA_CCFLAGS) $(INCLUDES) +CFLAGS = $(CCFLAGS) $(DEFINES) $(EXTRA_CCFLAGS) $(STD_CFLAGS) $(INCLUDES) +DFLAGS = $(CCFLAGS) $(DDEFINES) $(EXTRA_CCFLAGS) $(STD_CFLAGS) $(INCLUDES) ############################################################# diff --git a/app/include/lwipopts.h b/app/include/lwipopts.h index eaa8dd6b..4d9ad469 100644 --- a/app/include/lwipopts.h +++ b/app/include/lwipopts.h @@ -789,7 +789,6 @@ #ifndef LWIP_MDNS #define LWIP_MDNS 1 #endif -/* /* ---------------------------------- ---------- DNS options ----------- diff --git a/app/modules/Makefile b/app/modules/Makefile index 848c3834..9733642d 100644 --- a/app/modules/Makefile +++ b/app/modules/Makefile @@ -15,7 +15,7 @@ ifndef PDIR GEN_LIBS = libmodules.a endif -EXTRA_CCFLAGS+=-std=gnu11 +STD_CFLAGS=-std=gnu11 -Wimplicit ############################################################# # Configuration i.e. compile options etc. diff --git a/app/modules/tmr.c b/app/modules/tmr.c index c88af871..357aa1a4 100755 --- a/app/modules/tmr.c +++ b/app/modules/tmr.c @@ -52,6 +52,7 @@ tmr.softwd(int) #include "lauxlib.h" #include "platform.h" #include "c_types.h" +#include "user_interface.h" #define TIMER_MODE_OFF 3 #define TIMER_MODE_SINGLE 0 diff --git a/app/platform/platform.h b/app/platform/platform.h index 0669ff9d..dce7a3f5 100644 --- a/app/platform/platform.h +++ b/app/platform/platform.h @@ -260,6 +260,7 @@ void* platform_get_last_free_ram( unsigned id ); int platform_ow_exists( unsigned id ); int platform_gpio_exists( unsigned id ); +int platform_tmr_exists( unsigned id ); // ***************************************************************************** // Helper macros