Added -Wimplicit to modules build.

Plus associated fixes.
This commit is contained in:
Johny Mattsson 2016-01-22 10:55:57 +11:00
parent 182d45f928
commit 0cd287e67b
5 changed files with 5 additions and 4 deletions

View File

@ -131,8 +131,8 @@ CCFLAGS += \
-mtext-section-literals -mtext-section-literals
# -Wall # -Wall
CFLAGS = $(CCFLAGS) $(DEFINES) $(EXTRA_CCFLAGS) $(INCLUDES) CFLAGS = $(CCFLAGS) $(DEFINES) $(EXTRA_CCFLAGS) $(STD_CFLAGS) $(INCLUDES)
DFLAGS = $(CCFLAGS) $(DDEFINES) $(EXTRA_CCFLAGS) $(INCLUDES) DFLAGS = $(CCFLAGS) $(DDEFINES) $(EXTRA_CCFLAGS) $(STD_CFLAGS) $(INCLUDES)
############################################################# #############################################################

View File

@ -789,7 +789,6 @@
#ifndef LWIP_MDNS #ifndef LWIP_MDNS
#define LWIP_MDNS 1 #define LWIP_MDNS 1
#endif #endif
/*
/* /*
---------------------------------- ----------------------------------
---------- DNS options ----------- ---------- DNS options -----------

View File

@ -15,7 +15,7 @@ ifndef PDIR
GEN_LIBS = libmodules.a GEN_LIBS = libmodules.a
endif endif
EXTRA_CCFLAGS+=-std=gnu11 STD_CFLAGS=-std=gnu11 -Wimplicit
############################################################# #############################################################
# Configuration i.e. compile options etc. # Configuration i.e. compile options etc.

View File

@ -52,6 +52,7 @@ tmr.softwd(int)
#include "lauxlib.h" #include "lauxlib.h"
#include "platform.h" #include "platform.h"
#include "c_types.h" #include "c_types.h"
#include "user_interface.h"
#define TIMER_MODE_OFF 3 #define TIMER_MODE_OFF 3
#define TIMER_MODE_SINGLE 0 #define TIMER_MODE_SINGLE 0

View File

@ -260,6 +260,7 @@ void* platform_get_last_free_ram( unsigned id );
int platform_ow_exists( unsigned id ); int platform_ow_exists( unsigned id );
int platform_gpio_exists( unsigned id ); int platform_gpio_exists( unsigned id );
int platform_tmr_exists( unsigned id );
// ***************************************************************************** // *****************************************************************************
// Helper macros // Helper macros