diff --git a/meta-oniro-core/recipes-devtools/flex/flex_%.bbappend b/meta-oniro-core/recipes-devtools/flex/flex_%.bbappend index 6896e0d71c13028923a90dfe977d7debdce09ffc..ec651246a44375a3e567b3e87f93808a147200e3 100644 --- a/meta-oniro-core/recipes-devtools/flex/flex_%.bbappend +++ b/meta-oniro-core/recipes-devtools/flex/flex_%.bbappend @@ -8,4 +8,4 @@ # -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode # while keeping flex building. -TARGET_CFLAGS_remove = "-Werror=format-nonliteral" +TARGET_CFLAGS:remove = "-Werror=format-nonliteral"