From 9b65f48dc3e7fff1d998e98e06242ad26f049639 Mon Sep 17 00:00:00 2001 From: Cedric Roux <cedric.roux@eurecom.fr> Date: Tue, 19 Nov 2013 15:58:21 +0000 Subject: [PATCH] - Add -Wall to SCTP and S1AP libraries makefile git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4438 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- openair-cn/S1AP/Makefile.eNB | 4 +++- openair-cn/SCTP/Makefile.eNB | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/openair-cn/S1AP/Makefile.eNB b/openair-cn/S1AP/Makefile.eNB index e3d55239fa..b748656e0d 100644 --- a/openair-cn/S1AP/Makefile.eNB +++ b/openair-cn/S1AP/Makefile.eNB @@ -50,6 +50,7 @@ endif -include *.d CFLAGS = \ + -Wall \ -DENB_MODE \ -DENABLE_USE_MME \ -DEMIT_ASN_DEBUG=1 \ @@ -60,11 +61,12 @@ CFLAGS = \ $(ADD_CFLAGS) \ -DENB_MODE \ $(S1AP_CFLAGS) \ + -Wuninitialized \ -Werror=implicit-function-declaration $(libs1ap_OBJECTS): %.o : %.c @echo "Compiling $<" - @$(CC) -c $(CFLAGS) -o $@ $< + $(CC) -c $(CFLAGS) -o $@ $< @$(CC) -MM $(CFLAGS) $*.c > $*.d @mv -f $*.d $*.d.tmp @sed -e 's|.*:|$*.o:|' < $*.d.tmp > $*.d diff --git a/openair-cn/SCTP/Makefile.eNB b/openair-cn/SCTP/Makefile.eNB index dd665ddf5b..bd0cf3827a 100644 --- a/openair-cn/SCTP/Makefile.eNB +++ b/openair-cn/SCTP/Makefile.eNB @@ -9,9 +9,11 @@ libsctp_OBJECTS = \ -include .*.d CFLAGS = \ + -Wall \ $(S1AP_CFLAGS) \ -I../SCTP \ -DENB_MODE \ + -Werror=uninitialized \ -Werror=implicit-function-declaration $(libsctp_OBJECTS): %.o : %.c -- GitLab