Skip to content

mathops.h:125: Error: operand type mismatch for `shr' #272

@jose1711

Description

@jose1711

On ArchLinux x86_64 with ffmpeg4.4 installed I am getting

$ make
..
..
./libavutil/mem.h:174:1: warning: ‘alloc_size’ attribute ignored on a function returning ‘int’ [-Wattributes]
  174 | av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size);
      | ^~~~~~~~~~~~~
CC	libavformat/adtsenc.o
In file included from ./libavutil/common.h:373,
                 from ./libavcodec/get_bits.h:31,
                 from libavformat/adtsenc.c:23:
./libavutil/mem.h:174:1: warning: ‘alloc_size’ attribute ignored on a function returning ‘int’ [-Wattributes]
  174 | av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size);
      | ^~~~~~~~~~~~~
./libavcodec/x86/mathops.h: Assembler messages:
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'
make: *** [Makefile:48: libavformat/adtsenc.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions