Re: MultiByteToWideChar et al.
DEF <[email protected]> Mon, 25 Oct 2021 20:26:17 +0100
| Newsgroups | gmane.comp.video.mplayer.cygwin |
|---|---|
| Message-ID | <CABNQO4VS94t-B561HVWiUdvGcnt9qrt1tKt1+jd4_XpRT0NOLw@mail.gmail.com> |
On Mon, 25 Oct 2021 at 19:17, Ulf-Dietrich Braumann <[email protected]> wrote: > > Hello, > > I am trying to build version mplayer 1.4 (as well as a source snapshot as of > Oct 25, 2021) on a well administered cygwin installation > > %uname -a CYGWIN_NT-10.0 XXXX-XX-XXX 3.2.0(0.340/5/3) 2021-03-29 08:42 x86_64 > Cygwin Do you have any particular reason to stick to cygwin? You are better off with a cross compiler I think. > > however, I end up with some weird codepage trouble: > > cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith > -Wredundant-decls -Werror=format-security -Wstrict-prototypes > -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign > -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration > -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native > -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize > -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > -D_LARGEFILE64_SOURCE -fno-common -DPIC -D_WIN32_WINNT=0x0600 > -I/usr/include/p11-kit-1 -I/usr/local/include/openjpeg-2.1 > -I/usr/include/freetype2 -I/usr/include/libpng16 -DZLIB_CONST > -I/usr/include/opus -I/usr/include/libxml2 -c -o stream/stream.o > stream/stream.c > stream/stream.c: In function 'open_stream_plugin': > stream/stream.c:165:62: warning: initialization discards 'const' qualifier from > pointer target type [-Wdiscarded-qualifiers] > 165 | { "stream url", arg , CONF_TYPE_CUSTOM_URL, 0, 0 ,0, sinfo->opts }; > | ^~~~~ > In file included from stream/stream.c:19: stream/stream.c: In function 'parse_chapter_range': stream/stream.c:724:24: warning: array subscript has type 'char' [-Wchar-subscripts]