mirror of
https://github.com/apache/nuttx.git
synced 2026-08-25 23:47:16 +00:00
utils/net_cmsg.c: In function 'cmsg_append':
utils/net_cmsg.c:82:23: error: pointer of type 'void *' used in arithmetic [-Werror=pointer-arith]
82 | msg->msg_control += cmsgspace;
| ^~
cc1: all warnings being treated as errors
Using void pointers in arithmetic operations is a GCC extension, it is
not supported by the standard. Because what is the size of a void ?
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Make.defs | ||
| net_chksum.c | ||
| net_cmsg.c | ||
| net_dsec2tick.c | ||
| net_dsec2timeval.c | ||
| net_icmpchksum.c | ||
| net_incr32.c | ||
| net_ipchksum.c | ||
| net_ipv6_mask2pref.c | ||
| net_ipv6_maskcmp.c | ||
| net_ipv6_pref2mask.c | ||
| net_lock.c | ||
| net_snoop.c | ||
| net_tcpchksum.c | ||
| net_timeval2dsec.c | ||
| net_udpchksum.c | ||
| utils.h | ||