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