Brother Rabbit
2019-04-13 08:49:42 UTC
Hi, All!
Как правильно собрать сабж?
=== Import Windows Clipboard Start ===
log.c:150:21: warning: format '%d' expects argument of type 'int', but argument
3 has type 'size_t {aka long unsigned int}' [-Wformat=]
fprintf( stderr, "can't malloc() %d bytes of memory\n", len );
^
In file included from /usr/include/stdio.h:936:0,
from headers.h:58,
from log.c:32:
In function 'snprintf',
inlined from 'chatlog_init' at log.c:320:3:
/usr/include/bits/stdio2.h:64:10: error: call to __builtin___snprintf_chk will
always overflow destination buffer
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^
make[3]: *** [log.o] Ошибка 1
make[3]: Выход из каталога `/mnt/disk/src/qico-0.59.1/src'
make[2]: *** [all] Ошибка 2
make[2]: Выход из каталога `/mnt/disk/src/qico-0.59.1/src'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Выход из каталога `/mnt/disk/src/qico-0.59.1'
make: *** [all] Ошибка 2
=== Import Windows Clipboard End ===
Have nice nights.
Brother Rabbit.
Как правильно собрать сабж?
=== Import Windows Clipboard Start ===
log.c:150:21: warning: format '%d' expects argument of type 'int', but argument
3 has type 'size_t {aka long unsigned int}' [-Wformat=]
fprintf( stderr, "can't malloc() %d bytes of memory\n", len );
^
In file included from /usr/include/stdio.h:936:0,
from headers.h:58,
from log.c:32:
In function 'snprintf',
inlined from 'chatlog_init' at log.c:320:3:
/usr/include/bits/stdio2.h:64:10: error: call to __builtin___snprintf_chk will
always overflow destination buffer
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^
make[3]: *** [log.o] Ошибка 1
make[3]: Выход из каталога `/mnt/disk/src/qico-0.59.1/src'
make[2]: *** [all] Ошибка 2
make[2]: Выход из каталога `/mnt/disk/src/qico-0.59.1/src'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Выход из каталога `/mnt/disk/src/qico-0.59.1'
make: *** [all] Ошибка 2
=== Import Windows Clipboard End ===
Have nice nights.
Brother Rabbit.