build: apply -Werror build option 42/51442/2
authorSooyoung Ha <yoosah.ha@samsung.com>
Mon, 9 Nov 2015 14:57:17 +0000 (23:57 +0900)
committerSooyoung Ha <yoosah.ha@samsung.com>
Mon, 9 Nov 2015 15:03:28 +0000 (00:03 +0900)
This option enables that warning as error, we can catch build warnings
easily on compile time. -Wall option has enabled already.

Change-Id: I0d99a3bcaf3fe03cda851917a13848162f205399
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
configure.ac
libvmodem/Makefile.in

index d0ced7c..7dd681d 100644 (file)
@@ -13,7 +13,7 @@ then
        AC_MSG_ERROR([pkg-config not present, please install])
 fi
 
-CFLAGS="${CFLAGS} -Wall"
+CFLAGS="${CFLAGS} -Wall -Werror"
 
 AC_SUBST(GLIB_CFLAGS)
 AC_SUBST(GLIB_LIBS)
index 4a944f4..f1bc4df 100644 (file)
@@ -1,16 +1,14 @@
 CC=@CC@
 AR=@AR@
-INCLUDES =     \
-       -I. \
+INCLUDES = -I. \
        -I../lib/libsms
 
 CFLAGS  = @CFLAGS@
-CFLAGS  += -Wall $(INCLUDES)  -DEMTRACE_I878 -D_LIBVGSM_DEBUG
+CFLAGS  += -Wall -Werror $(INCLUDES) -DEMTRACE_I878 -D_LIBVGSM_DEBUG
 
 LIBS    = -lpthread
 
-OBJ =                  \
-       lxtutil.o \
+OBJ =   lxtutil.o \
        libvgsm_edb.o \
        libvgsm_emul.o \
        libvgsm_init.o \