diff --git a/meta-ohos-core/recipes-devtools/make/make_%.bbappend b/meta-ohos-core/recipes-devtools/make/make_%.bbappend new file mode 100644 index 0000000000000000000000000000000000000000..c6c865098f5dc2ae702d087550011c48f3eed67c --- /dev/null +++ b/meta-ohos-core/recipes-devtools/make/make_%.bbappend @@ -0,0 +1,11 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# SPDX-License-Identifier: Apache-2.0 + +# make uses non-literal format strings in a few places. +# This has been verified to be harmless in 4.3 +# +# Removing -Werror=format-nonliteral here allows us to use +# -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode +# while keeping make building. + +TARGET_CFLAGS_remove = "-Werror=format-nonliteral"