On Mon, Jan 05, 2009 at 03:36:54PM +0600, Slava Semushin wrote: > Здравствуйте! > > Собираю новую версию mpdscribble. Включил --enable-werror и получаю: > > gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -pthread -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -I/usr/include/libsoup-2.4 > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I./src > -I./src/libmpdclient -DFILE_CONF='"/usr/local/etc/mpdscribble.conf"' > -Werror -pedantic-errors -DNDEBUG -Wall -Wextra > -Wno-deprecated-declarations -Wmissing-prototypes > -Wdeclaration-after-statement -Wshadow -Wpointer-arith > -Wstrict-prototypes -Wcast-qual -Wwrite-strings -g -O2 Сочетание -std=gnu99 -pedantic-errors -Wall -Wextra -Werror в glibc не поддерживается. Предлагаю -pedantic-errors убрать. > In file included from /usr/include/sys/syslog.h:207, > from /usr/include/syslog.h:1, > from src/log.c:32: > /usr/include/bits/syslog.h: In function 'syslog': > /usr/include/bits/syslog.h:32: error: ISO C forbids 'return' with > expression, in function returning void > /usr/include/bits/syslog.h: In function 'vsyslog': > /usr/include/bits/syslog.h:48: error: ISO C forbids 'return' with > expression, in function returning void > make[1]: *** [log.o] Ошибка 1 > > А тут как быть? Это можно исправить, но вылезет где-нибудь в другом месте. -- ldv