Skip to content

Fix non-x86 builds and approximately one million warnings

Nirbheek Chauhan requested to merge nirbheek/ffmpeg:misc-fixes into meson-4.1

commit 3efe53a5:

meson: Don't error out when assembler type is unknown
We don't use an assembler for non-x86 builds

commit e8f02123:

avutil/mem: Fix invalid use of av_alloc_size
The alloc_size attribute is valid only on functions that return a
pointer.  GCC 9 (not yet released) warns about invalid usage:

./libavutil/mem.h:342:1: warning: 'alloc_size' attribute ignored on a function returning int' [-Wattributes]
  342 | av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size);
      | ^~~~~~~~~~~~~

The mem.h change is from upstream: https://patchwork.ffmpeg.org/patch/11148/

Merge request reports

Loading