From f411a412bee0ab70731bab13b5f9f25e89155fca Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Wed, 6 May 2020 17:31:40 -0700 Subject: [PATCH] [toranj] update build script to treat "warning as error" under cmake (#4931) --- tests/toranj/build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/toranj/build.sh b/tests/toranj/build.sh index 3e417483c..b64324314 100755 --- a/tests/toranj/build.sh +++ b/tests/toranj/build.sh @@ -149,7 +149,8 @@ case ${build_config} in echo "====================================================================================================" echo "Building OpenThread (NCP/CLI for FTD/MTD/RCP mode) with simulation platform using cmake" echo "====================================================================================================" - cmake -GNinja -DOT_PLATFORM=simulation -DOT_CONFIG=../tests/toranj/openthread-core-toranj-config-simulation.h . || die + cmake -GNinja -DOT_PLATFORM=simulation -DOT_COMPILE_WARNING_AS_ERROR=on \ + -DOT_CONFIG=../tests/toranj/openthread-core-toranj-config-simulation.h . || die ninja || die ;; @@ -157,7 +158,8 @@ case ${build_config} in echo "====================================================================================================" echo "Building OpenThread POSIX host platform using cmake" echo "====================================================================================================" - cmake -GNinja -DOT_PLATFORM=posix -DOT_CONFIG=../tests/toranj/openthread-core-toranj-config-posix.h . || die + cmake -GNinja -DOT_PLATFORM=posix -DOT_COMPILE_WARNING_AS_ERROR=on \ + -DOT_CONFIG=../tests/toranj/openthread-core-toranj-config-posix.h . || die ninja || die ;;