From 35848351b50ead68d63fa1423cf44d48a3d5fd13 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Tue, 8 Aug 2017 22:09:33 -0700 Subject: [PATCH] [travis] add build checks for OT_LOG_LEVEL_NONE and OT_LOG_LEVEL_DEBG (#2076) --- .travis/script.sh | 10 +++++++++- src/core/meshcop/dtls.cpp | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.travis/script.sh b/.travis/script.sh index da72c79ff..818e92ddd 100755 --- a/.travis/script.sh +++ b/.travis/script.sh @@ -196,8 +196,16 @@ set -x [ $BUILD_TARGET != posix ] || { sh -c '$CC --version' || die sh -c '$CXX --version' || die + + git checkout -- . || die + git clean -xfd || die ./bootstrap || die - make -f examples/Makefile-posix || die + CPPFLAGS=-DOPENTHREAD_CONFIG_LOG_LEVEL=OT_LOG_LEVEL_NONE make -f examples/Makefile-posix || die + + git checkout -- . || die + git clean -xfd || die + ./bootstrap || die + CPPFLAGS=-DOPENTHREAD_CONFIG_LOG_LEVEL=OT_LOG_LEVEL_DEBG make -f examples/Makefile-posix || die } [ $BUILD_TARGET != posix-distcheck ] || { diff --git a/src/core/meshcop/dtls.cpp b/src/core/meshcop/dtls.cpp index 8ffc04073..4bd9d33a1 100644 --- a/src/core/meshcop/dtls.cpp +++ b/src/core/meshcop/dtls.cpp @@ -488,6 +488,7 @@ void Dtls::HandleMbedtlsDebug(void *ctx, int level, const char *, int, const cha { Dtls *pThis = static_cast(ctx); OT_UNUSED_VARIABLE(pThis); + OT_UNUSED_VARIABLE(str); switch (level) {