[PATCH] build: fix meson build when gcc >= 10.0

Thomas Monjalon thomas at monjalon.net
Tue Jun 7 12:52:32 CEST 2022


07/06/2022 04:56, wenxuanx.wu at intel.com:
> From: Wenxuan Wu <wenxuanx.wu at intel.com>
> 
> GCC version greater than 10.0, with compile option -O2, several warnings info would appear,
> this fix omitted these warnings.
[...]
>  # FIXME: Bugzilla 396
> -    warning_flags += '-Wno-zero-length-bounds'
> +    warning_flags += [
> +      '-Wno-zero-length-bounds',
> +      '-Wno-stringop-overflow',
> +      '-Wno-array-bounds',
> +      '-Wno-format-overflow',

The compilers are reported warnings to help us having a better code.
We should try to resolve the warnings, not hiding them.




More information about the stable mailing list