Skip to content
Snippets Groups Projects
Commit 9f8d8da4 authored by Bernhard Rosenkränzer's avatar Bernhard Rosenkränzer
Browse files

gcc: Build without -Wformat-security and -Wformat-nonliteral


Remove -Wformat-security and -Wformat-nonliteral from compiler flags for
incompatible code in gcc so we can enable those flags globally.

Signed-off-by: default avatarBernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
parent 71acf822
No related branches found
No related tags found
No related merge requests found
......@@ -116,3 +116,13 @@ EXTRA_OECONF_PATHS = "\
--with-sysroot=/not/exist \
--with-build-sysroot=${STAGING_DIR_TARGET} \
"
# gcc triggers some warnings (format string security issues) because of
# very low-level code. Those warnings are harmless (last checked in 11.2).
# Let's make sure we don't error out on them so we can enable the extra
# checks globally in OPTIMIZE_FOR=security mode.
#
# Since parts of gcc are built with -Werror, we have to remove even the
# -W flags, not just -Werror=.
#
TARGET_CFLAGS_remove = "-Wformat-security -Werror=format-security -Wformat-nonliteral -Werror=format-nonliteral"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment