chinadns-ng icon indicating copy to clipboard operation
chinadns-ng copied to clipboard

在alpine linux上编译出现警告

Open windrosecn opened this issue 3 years ago • 2 comments

logutils.h:12:16: warning: format '%ld' expects argument of type 'long int', but argument 8 has type 'time_t' {aka 'long long int'} [-Wformat=] 12 | printf("\e[1;32m%04d-%02d-%02d %02d:%02d:%02d INF:\e[0m " fmt "\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logutils.h:12:16: note: in definition of macro 'LOGINF' 12 | printf("\e[1;32m%04d-%02d-%02d %02d:%02d:%02d INF:\e[0m " fmt "\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ alpine 版本是3.13.5 gcc版本: gcc (Alpine 10.2.1_pre1) 10.2.1 20201203

windrosecn avatar Jun 04 '21 13:06 windrosecn

收到

zfl9 avatar Jun 05 '21 06:06 zfl9

这个警告应该不会影响正常使用,等有时间在一起处理吧。

zfl9 avatar Jul 25 '21 13:07 zfl9

见最新提交。

zfl9 avatar Feb 23 '23 14:02 zfl9