Тема: qico
Показать сообщение отдельно
  #3  
Старый 14.04.2019, 10:51
Rinat H. Sadretdinow
Guest
 
Сообщений: n/a
По умолчанию qico

Rinat H. Sadretdinow написал(а) к Brother Rabbit в Apr 19 09:17:04 по местному времени:

Нello Brother!

14 Apr 19 07:49, you wrote to me:

BR> ftn.c: In function 'mapname':
BR> ftn.c:329:20: warning: format '%lx' expects argument of type 'long
BR> unsigned int', but argument 4 has type 'UINT32 {aka unsigned int}'
BR> [-Wformat=]
BR> snprintf(fn+5,14,"%08lx%s",crc32s(fn),l);
BR> ^

Ну тут надо просто 'l' убрать из формата "%08lx%s", сделать "%08x%s", тогда warning уйдёт.

BR> In function 'snprintf',
BR> inlined from 'closeqpkt' at ftn.c:276:2:
BR> /usr/include/bits/stdio2.h:64:10: error: call to
BR> _builtin___snprintfchk will always overflow destination buffer
BR> return _builtin___snprintf_chk (__s, __n, __USE_FORTIFYLEVEL - 1,
BR> ^

А тут я уже советовал в предыдущем письме что сделать.

Bye!

--- GoldED+/LNX 1.1.5-b20170303
Ответить с цитированием