mplayer.c:3541:41: error: passing argument 2 of 'stream_write_buffer' from incompatible pointer type
Ilja Honkonen <[email protected]> Tue, 21 May 2024 14:29:16 +0300
| Newsgroups | gmane.comp.video.mplayer.user |
|---|---|
| Message-ID | <[email protected]> |
Hello
I get this when compiling mplayer-export-2024-05-21 with gcc 14.1.1 on
Fedora 40:
...
mplayer.c: In function 'main':
mplayer.c:3541:41: error: passing argument 2 of 'stream_write_buffer'
from incompatible pointer type [-Wincompatible-pointer-types]
3541 | stream_write_buffer(os, &in_size, 4);
| ^~~~~~~~
| |
| int *
In file included from ./mp_core.h:26,
from gui/interface.h:23,
from mplayer.c:73:
./stream/stream.h:203:53: note: expected 'unsigned char *' but argument
is of type 'int *'
203 | int stream_write_buffer(stream_t *s, unsigned char *buf, int len);
| ~~~~~~~~~~~~~~~^~~
make: *** [Makefile:729: mplayer.o] Error 1
Ilja