[build] fix warning of clearing non-trivial type (#5710)

This commit is contained in:
kangping
2020-10-27 08:10:56 -07:00
committed by GitHub
parent 8707b63894
commit 3de6b9a86a
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ build()
mkdir -p "${builddir}"
cd "${builddir}"
cmake -GNinja "$@" "${OT_SRCDIR}"
cmake -GNinja -DOT_COMPILE_WARNING_AS_ERROR=ON "$@" "${OT_SRCDIR}"
if [[ -n ${OT_CMAKE_NINJA_TARGET[*]} ]]; then
ninja "${OT_CMAKE_NINJA_TARGET[@]}"