From a78b99941e296dd5164116c977539b5e02ce0e2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20Rosenkr=C3=A4nzer?= <bernhard.rosenkraenzer.ext@huawei.com> Date: Fri, 3 Sep 2021 16:13:36 +0200 Subject: [PATCH] sed: Remove -Werror=format-nonliteral from compiler flags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit sed uses non-literal format strings in a few places. This has been verified to be harmless in 4.8. Removing -Werror=format-nonliteral here allows us to use -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode while keeping sed building. TARGET_CFLAGS_remove = "-Werror=format-nonliteral" Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com> --- meta-ohos-core/recipes-devtools/sed/sed_%.bbappend | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 meta-ohos-core/recipes-devtools/sed/sed_%.bbappend diff --git a/meta-ohos-core/recipes-devtools/sed/sed_%.bbappend b/meta-ohos-core/recipes-devtools/sed/sed_%.bbappend new file mode 100644 index 00000000..df56ed28 --- /dev/null +++ b/meta-ohos-core/recipes-devtools/sed/sed_%.bbappend @@ -0,0 +1,11 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# SPDX-License-Identifier: Apache-2.0 + +# sed uses non-literal format strings in a few places. +# This has been verified to be harmless in 4.8. +# +# Removing -Werror=format-nonliteral here allows us to use +# -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode +# while keeping sed building. + +TARGET_CFLAGS_remove = "-Werror=format-nonliteral" -- GitLab