[MPlayer-users] mplayer.c:3541:41: error: passing argument 2 of 'stream_write_buffer' from incompatible pointer type

Ilja Honkonen ilja.honkonen at fmi.fi
Tue May 21 14:29:16 EEST 2024


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


More information about the MPlayer-users mailing list