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

cairo: Remove -Werror=array-bounds from compiler flags


cairo uses zero-length array tricks causing array-bounds warnings.

The warnings have been verifited to be harmless in 1.16.0; 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.

Signed-off-by: default avatarBernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
parent 782c8c90
No related branches found
No related tags found
No related merge requests found
# SPDX-FileCopyrightText: Huawei Inc.
# SPDX-License-Identifier: Apache-2.0
# cairo uses zero-length array tricks that trigger warnings with
# -Warray-bounds.
#
# Those have been verified to be harmless in 1.16.0.
#
# Removing -Werror=array-bounds here allows us to use -Werror=array-bounds
# globally in OPTIMIZE_FOR=security mode while keeping mesa building.
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