mirror of
https://github.com/obgm/libcoap.git
synced 2026-10-27 13:11:24 +03:00
builds: Set CFLAGS += -Werror in all linux subdirectory compilations
This commit is contained in:
1 parent
69b865cd3b
commit
19928e81bd
4 files changed
+4
-4
No files matched your search
@@ -15,7 +15,7 @@ if BUILD_EXAMPLES
|
||||
|
||||
# picking up the default warning CFLAGS into AM_CFLAGS
|
||||
AM_CFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include \
|
||||
$(WARNING_CFLAGS) $(DTLS_CFLAGS) -std=c99
|
||||
$(WARNING_CFLAGS) $(DTLS_CFLAGS) -std=c99 $(EXTRA_CFLAGS)
|
||||
|
||||
#
|
||||
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
# picking up the default warning CFLAGS into AM_CFLAGS
|
||||
AM_CFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include \
|
||||
-I$(top_srcdir)/include/coap$(LIBCOAP_API_VERSION) \
|
||||
$(WARNING_CFLAGS) $(DTLS_CFLAGS) -std=c99
|
||||
$(WARNING_CFLAGS) $(DTLS_CFLAGS) -std=c99 $(EXTRA_CFLAGS)
|
||||
|
||||
# Build, not install
|
||||
noinst_PROGRAMS = examples-code-check
|
||||
|
||||
@@ -17,7 +17,7 @@ if test $err = 0 -a "x$ARCHIVE" != "x"; then
|
||||
DIR=`pwd`/`tar taf $ARCHIVE |cut -d/ -f1|head -1`
|
||||
tar xaf $ARCHIVE && cd $DIR && \
|
||||
$DIR/configure $PREFIX --enable-tests --enable-silent-rules --enable-documentation --enable-examples --disable-dtls && \
|
||||
make && make install
|
||||
make EXTRA_CFLAGS=-Werror && make install EXTRA_CFLAGS=-Werror
|
||||
err=$?
|
||||
fi
|
||||
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@
|
||||
if HAVE_CUNIT
|
||||
|
||||
# picking up the default warning CFLAGS
|
||||
AM_CFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include $(WARNING_CFLAGS) $(CUNIT_CFLAGS) $(DTLS_CFLAGS) -std=c99
|
||||
AM_CFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include $(WARNING_CFLAGS) $(CUNIT_CFLAGS) $(DTLS_CFLAGS) -std=c99 $(EXTRA_CFLAGS)
|
||||
|
||||
noinst_PROGRAMS = \
|
||||
testdriver
|
||||
|
||||
Reference in new issue
Block a user