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