klzgrad/naiveproxy

The persistent compilation warning problem has not been solved.

zxlhhyccc opened this issue · 1 comments

../../base/posix/unix_domain_socket.cc:83:26: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'socklen_t' (aka 'unsigned int') [-Wshorten-64-to-32]
   83 |     msg.msg_controllen = control_len;
      |                        ~ ^~~~~~~~~~~
../../base/posix/unix_domain_socket.cc:91:22: warning: implicit conversion loses integer precision: 'unsigned long' to 'socklen_t' (aka 'unsigned int') [-Wshorten-64-to-32]
   91 |     cmsg->cmsg_len = CMSG_LEN(sizeof(int) * fds.size());
      |                    ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../../staging_dir/toolchain-aarch64_cortex-a53_gcc-13.2.0_musl/include/sys/socket.h:364:63: note: expanded from macro 'CMSG_LEN'
  364 | #define CMSG_LEN(len)   (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len))
      |                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
../../base/posix/unix_domain_socket.cc:172:51: warning: comparison of integers of different signs: 'unsigned long' and 'long' [-Wsign-compare]
  172 |     for (cmsg = CMSG_FIRSTHDR(&msg); cmsg; cmsg = CMSG_NXTHDR(&msg, cmsg)) {
      |                                                   ^~~~~~~~~~~~~~~~~~~~~~~
../../../../../../staging_dir/toolchain-aarch64_cortex-a53_gcc-13.2.0_musl/include/sys/socket.h:358:44: note: expanded from macro 'CMSG_NXTHDR'
  358 |         __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char *)(cmsg) \
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings generated.

https://git.musl-libc.org/cgit/musl/commit/?id=7168790763cdeb794df52be6e3b3
https://www.openwall.com/lists/musl/2016/10/10/1

I will not maintain a patch series to fix musl incompatibility with glibc everywhere just to remove these warnings.

This is wontfix, and do not report again.