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

libpcre2: Don't use -Werror=array-bounds


pcre2test uses negative array indices which seem to confuse the array bounds
checker. The warnings look harmless.

Disable -Werror=array-bounds for libpcre2 to allow building with a global
-Werror=array-bounds.

Signed-off-by: default avatarBernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
parent 0884c9c6
No related branches found
No related tags found
No related merge requests found
# SPDX-FileCopyrightText: Huawei Inc.
# SPDX-License-Identifier: Apache-2.0
# -Werror=array-bounds gets confused over negative array indices in
# pcre2test.
# The warnings have been verifited to be harmless in 10.34; for extra
# security, this should be re-checked after updating.
#
# Removing -Werror=array-bounds here allows us to use -Werror=array-bounds
# globally in OPTIMIZE_FOR=security mode.
TARGET_CFLAGS_remove = "-Werror=array-bounds"
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