Commit 9b65f48d authored by Cedric Roux's avatar Cedric Roux

- Add -Wall to SCTP and S1AP libraries makefile

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4438 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 2acd0d94
...@@ -50,6 +50,7 @@ endif ...@@ -50,6 +50,7 @@ endif
-include *.d -include *.d
CFLAGS = \ CFLAGS = \
-Wall \
-DENB_MODE \ -DENB_MODE \
-DENABLE_USE_MME \ -DENABLE_USE_MME \
-DEMIT_ASN_DEBUG=1 \ -DEMIT_ASN_DEBUG=1 \
...@@ -60,11 +61,12 @@ CFLAGS = \ ...@@ -60,11 +61,12 @@ CFLAGS = \
$(ADD_CFLAGS) \ $(ADD_CFLAGS) \
-DENB_MODE \ -DENB_MODE \
$(S1AP_CFLAGS) \ $(S1AP_CFLAGS) \
-Wuninitialized \
-Werror=implicit-function-declaration -Werror=implicit-function-declaration
$(libs1ap_OBJECTS): %.o : %.c $(libs1ap_OBJECTS): %.o : %.c
@echo "Compiling $<" @echo "Compiling $<"
@$(CC) -c $(CFLAGS) -o $@ $< $(CC) -c $(CFLAGS) -o $@ $<
@$(CC) -MM $(CFLAGS) $*.c > $*.d @$(CC) -MM $(CFLAGS) $*.c > $*.d
@mv -f $*.d $*.d.tmp @mv -f $*.d $*.d.tmp
@sed -e 's|.*:|$*.o:|' < $*.d.tmp > $*.d @sed -e 's|.*:|$*.o:|' < $*.d.tmp > $*.d
......
...@@ -9,9 +9,11 @@ libsctp_OBJECTS = \ ...@@ -9,9 +9,11 @@ libsctp_OBJECTS = \
-include .*.d -include .*.d
CFLAGS = \ CFLAGS = \
-Wall \
$(S1AP_CFLAGS) \ $(S1AP_CFLAGS) \
-I../SCTP \ -I../SCTP \
-DENB_MODE \ -DENB_MODE \
-Werror=uninitialized \
-Werror=implicit-function-declaration -Werror=implicit-function-declaration
$(libsctp_OBJECTS): %.o : %.c $(libsctp_OBJECTS): %.o : %.c
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment