Martijn van Beurden wrote:

Hi all,

I tried building the latest flac.git on Windows with MinGW just
today, and got the following build error: (I had to copy-paste
this 'by hand', so there might be a few small mistakes)

CCLD         utf8/libutf8.la
  CC           win_utf8_io/win_utf8_io.lo
win_utf8__io/win_utf8_io.c:266:13: error: static declaration
of 'set_filename_utf8' follows non-static declaration
 static void set_filename_utf8(int b)
             ^
win_utf8__io/win_utf8_io.c:106:6: note: previous declaration
of 'set_filename_utf8' was here
 void set_filename_utf8(int b);
      ^

win_utf8__io/win_utf8_io.c:266:13: warning:
'set_filename_utf8' defined but not used [-Wunused-function]
 static void set_filename_utf8(int b)
             ^

make[3]: *** [win_utf8_io/win_utf8_io.lo] Error 1

This probably has something to do with the recently merged utf8
patches? FLAC 1.3.1 didn't have this problem.

Here's a simple patch that should fix it (attached).

BTW, this version of win_utf8_io.c is intermediate because a part of it
will be moved to libFLAC, and I'll test the final version more thoroughly...

Attachment: build_fix.patch
Description: Binary data

_______________________________________________
flac-dev mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/flac-dev

Reply via email to