Ver código fonte

Added -Wimplicit to modules build.

Plus associated fixes.
Johny Mattsson 8 anos atrás
pai
commit
0cd287e67b
5 arquivos alterados com 5 adições e 4 exclusões
  1. 2 2
      Makefile
  2. 0 1
      app/include/lwipopts.h
  3. 1 1
      app/modules/Makefile
  4. 1 0
      app/modules/tmr.c
  5. 1 0
      app/platform/platform.h

+ 2 - 2
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)
 
 
 #############################################################

+ 0 - 1
app/include/lwipopts.h

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

+ 1 - 1
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.

+ 1 - 0
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

+ 1 - 0
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