diff --git a/eclass/ada.eclass b/eclass/ada.eclass index 2f68727c519b..8a029def018e 100644 --- a/eclass/ada.eclass +++ b/eclass/ada.eclass @@ -31,6 +31,8 @@ esac if [[ -z ${_ADA_ECLASS} ]]; then _ADA_ECLASS=1 +inherit flag-o-matic + # @ECLASS_VARIABLE: ADA_DEPS # @OUTPUT_VARIABLE # @DESCRIPTION: @@ -471,6 +473,9 @@ ada_setup() { unset EADA + # https://gcc.gnu.org/PR116226 + filter-flags -Warray-bounds + if [[ ${#_ADA_SUPPORTED_IMPLS[@]} -eq 1 ]]; then if use "ada_target_${_ADA_SUPPORTED_IMPLS[0]}"; then # Only one supported implementation, enable it explicitly