Skip to content

Commit

Permalink
build: suppress array-bounds errors in libxkbcommon
Browse files Browse the repository at this point in the history
  • Loading branch information
volbil committed Oct 31, 2024
1 parent 3051615 commit b25a308
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions depends/packages/libxkbcommon.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ $(package)_file_name=$(package)-$($(package)_version).tar.xz
$(package)_sha256_hash=60ddcff932b7fd352752d51a5c4f04f3d0403230a584df9a2e0d5ed87c486c8b
$(package)_dependencies=libxcb

# This package explicitly enables -Werror=array-bounds, which causes build failures
# with GCC 12.1+. Work around that by turning errors back into warnings.
# This workaround would be dropped if the package was updated, as that would require
# a different build system (Meson)
define $(package)_set_vars
$(package)_config_opts = --enable-option-checking --disable-dependency-tracking
$(package)_config_opts += --disable-static --disable-docs
$(package)_cflags += -Wno-error=array-bounds
endef

define $(package)_preprocess_cmds
Expand Down

0 comments on commit b25a308

Please sign in to comment.