Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Making all in dht
- CC dht.o
- dht.c:360:35: warning: cast from 'const struct sockaddr *' to
- 'struct sockaddr_in *' increases required alignment from 1 to 4
- [-Wcast-align]
- struct sockaddr_in *sin = (struct sockaddr_in*)sa;
- ^~~~~~~~~~~~~~~~~~~~~~~
- dht.c:368:37: warning: cast from 'const struct sockaddr *' to
- 'struct sockaddr_in6 *' increases required alignment from 1 to 4
- [-Wcast-align]
- struct sockaddr_in6 *sin6 = (struct sockaddr_in6*)sa;
- ^~~~~~~~~~~~~~~~~~~~~~~~
- dht.c:1319:35: warning: cast from 'const struct sockaddr *' to
- 'struct sockaddr_in *' increases required alignment from 1 to 4
- [-Wcast-align]
- struct sockaddr_in *sin = (struct sockaddr_in*)sa;
- ^~~~~~~~~~~~~~~~~~~~~~~
- dht.c:1323:37: warning: cast from 'const struct sockaddr *' to
- 'struct sockaddr_in6 *' increases required alignment from 1 to 4
- [-Wcast-align]
- struct sockaddr_in6 *sin6 = (struct sockaddr_in6*)sa;
- ^~~~~~~~~~~~~~~~~~~~~~~~
- dht.c:1446:35: warning: cast from 'const struct sockaddr *' to
- 'struct sockaddr_in *' increases required alignment from 1 to 4
- [-Wcast-align]
- struct sockaddr_in *sin = (struct sockaddr_in*)sa;
- ^~~~~~~~~~~~~~~~~~~~~~~
- dht.c:1451:37: warning: cast from 'const struct sockaddr *' to
- 'struct sockaddr_in6 *' increases required alignment from 1 to 4
- [-Wcast-align]
- struct sockaddr_in6 *sin6 = (struct sockaddr_in6*)sa;
- ^~~~~~~~~~~~~~~~~~~~~~~~
- dht.c:273:28: warning: unused variable 'ones' [-Wunused-const-variable]
- static const unsigned char ones[20] = {
- ^
- 7 warnings generated.
- AR libdht.a
- Making all in libb64
- Making all in libnatpmp
- CC getgateway.o
- CC natpmp.o
- natpmp.c:179:4: warning: cast from 'unsigned char *' to 'uint16_t *'
- (aka 'unsigned short *') increases required alignment from 1 to 2
- [-Wcast-align]
- *((uint16_t *)(p->pending_request + 4)) = htons(privateport);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- natpmp.c:180:4: warning: cast from 'unsigned char *' to 'uint16_t *'
- (aka 'unsigned short *') increases required alignment from 1 to 2
- [-Wcast-align]
- *((uint16_t *)(p->pending_request + 6)) = htons(publicport);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- natpmp.c:181:4: warning: cast from 'unsigned char *' to 'uint32_t *'
- (aka 'unsigned int *') increases required alignment from 1 to 4
- [-Wcast-align]
- *((uint32_t *)(p->pending_request + 8)) = htonl(lifetime);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- natpmp.c:212:34: warning: cast from 'unsigned char *' to 'uint16_t *'
- (aka 'unsigned short *') increases required alignment from 1 to 2
- [-Wcast-align]
- response->resultcode = ntohs(*((uint16_t *)(buf + 2)));
- ^~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
- #define ntohs(x) __DARWIN_OSSwapInt16(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:72:40: note: expanded from macro
- '__DARWIN_OSSwapInt16'
- ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x...
- ^
- natpmp.c:212:34: warning: cast from 'unsigned char *' to 'uint16_t *'
- (aka 'unsigned short *') increases required alignment from 1 to 2
- [-Wcast-align]
- response->resultcode = ntohs(*((uint16_t *)(buf + 2)));
- ^~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
- #define ntohs(x) __DARWIN_OSSwapInt16(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:72:71: note: expanded from macro
- '__DARWIN_OSSwapInt16'
- ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _...
- ^
- /usr/include/libkern/_OSByteOrder.h:44:34: note: expanded from macro
- '__DARWIN_OSSwapConstInt16'
- ((__uint16_t)((((__uint16_t)(x) & 0xff00) >> 8) | \
- ^
- natpmp.c:212:34: warning: cast from 'unsigned char *' to 'uint16_t *'
- (aka 'unsigned short *') increases required alignment from 1 to 2
- [-Wcast-align]
- response->resultcode = ntohs(*((uint16_t *)(buf + 2)));
- ^~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
- #define ntohs(x) __DARWIN_OSSwapInt16(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:72:71: note: expanded from macro
- '__DARWIN_OSSwapInt16'
- ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _...
- ^
- /usr/include/libkern/_OSByteOrder.h:45:32: note: expanded from macro
- '__DARWIN_OSSwapConstInt16'
- (((__uint16_t)(x) & 0x00ff) << 8)))
- ^
- natpmp.c:212:34: warning: cast from 'unsigned char *' to 'uint16_t *'
- (aka 'unsigned short *') increases required alignment from 1 to 2
- [-Wcast-align]
- response->resultcode = ntohs(*((uint16_t *)(buf + 2)));
- ^~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
- #define ntohs(x) __DARWIN_OSSwapInt16(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:72:89: note: expanded from macro
- '__DARWIN_OSSwapInt16'
- ...? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
- ^
- natpmp.c:213:29: warning: cast from 'unsigned char *' to 'uint32_t *'
- (aka 'unsigned int *') increases required alignment from 1 to 4
- [-Wcast-align]
- response->epoch = ntohl(*((uint32_t *)(buf + 4)));
- ^~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
- #define ntohl(x) __DARWIN_OSSwapInt32(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:75:27: note: expanded from macro
- '__DARWIN_OSSwapInt32'
- (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
- ^
- natpmp.c:213:29: warning: cast from 'unsigned char *' to 'uint32_t *'
- (aka 'unsigned int *') increases required alignment from 1 to 4
- [-Wcast-align]
- response->epoch = ntohl(*((uint32_t *)(buf + 4)));
- ^~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
- #define ntohl(x) __DARWIN_OSSwapInt32(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:75:58: note: expanded from macro
- '__DARWIN_OSSwapInt32'
- (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
- ^
- /usr/include/libkern/_OSByteOrder.h:48:34: note: expanded from macro
- '__DARWIN_OSSwapConstInt32'
- ((__uint32_t)((((__uint32_t)(x) & 0xff000000) >> 24) | \
- ^
- natpmp.c:213:29: warning: cast from 'unsigned char *' to 'uint32_t *'
- (aka 'unsigned int *') increases required alignment from 1 to 4
- [-Wcast-align]
- response->epoch = ntohl(*((uint32_t *)(buf + 4)));
- ^~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
- #define ntohl(x) __DARWIN_OSSwapInt32(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:75:58: note: expanded from macro
- '__DARWIN_OSSwapInt32'
- (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
- ^
- /usr/include/libkern/_OSByteOrder.h:49:32: note: expanded from macro
- '__DARWIN_OSSwapConstInt32'
- (((__uint32_t)(x) & 0x00ff0000) >> 8) | \
- ^
- natpmp.c:213:29: warning: cast from 'unsigned char *' to 'uint32_t *'
- (aka 'unsigned int *') increases required alignment from 1 to 4
- [-Wcast-align]
- response->epoch = ntohl(*((uint32_t *)(buf + 4)));
- ^~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
- #define ntohl(x) __DARWIN_OSSwapInt32(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:75:58: note: expanded from macro
- '__DARWIN_OSSwapInt32'
- (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
- ^
- /usr/include/libkern/_OSByteOrder.h:50:32: note: expanded from macro
- '__DARWIN_OSSwapConstInt32'
- (((__uint32_t)(x) & 0x0000ff00) << 8) | \
- ^
- natpmp.c:213:29: warning: cast from 'unsigned char *' to 'uint32_t *'
- (aka 'unsigned int *') increases required alignment from 1 to 4
- [-Wcast-align]
- response->epoch = ntohl(*((uint32_t *)(buf + 4)));
- ^~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
- #define ntohl(x) __DARWIN_OSSwapInt32(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:75:58: note: expanded from macro
- '__DARWIN_OSSwapInt32'
- (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
- ^
- /usr/include/libkern/_OSByteOrder.h:51:32: note: expanded from macro
- '__DARWIN_OSSwapConstInt32'
- (((__uint32_t)(x) & 0x000000ff) << 24)))
- ^
- natpmp.c:213:29: warning: cast from 'unsigned char *' to 'uint32_t *'
- (aka 'unsigned int *') increases required alignment from 1 to 4
- [-Wcast-align]
- response->epoch = ntohl(*((uint32_t *)(buf + 4)));
- ^~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
- #define ntohl(x) __DARWIN_OSSwapInt32(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:75:76: note: expanded from macro
- '__DARWIN_OSSwapInt32'
- (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
- ^
- natpmp.c:242:49: warning: cast from 'unsigned char *' to 'uint32_t *'
- (aka 'unsigned int *') increases required alignment from 1 to 4
- [-Wcast-align]
- ...response->pnu.publicaddress.addr.s_addr = *((uint32_t *)(buf + 8));
- ^~~~~~~~~~~~~~~~~~~~~
- natpmp.c:244:56: warning: cast from 'unsigned char *' to 'uint16_t *'
- (aka 'unsigned short *') increases required alignment from 1 to 2
- [-Wcast-align]
- ...= ntohs(*((uint16_t *)(buf + 8)));
- ^~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
- #define ntohs(x) __DARWIN_OSSwapInt16(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:72:40: note: expanded from macro
- '__DARWIN_OSSwapInt16'
- ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x...
- ^
- natpmp.c:244:56: warning: cast from 'unsigned char *' to 'uint16_t *'
- (aka 'unsigned short *') increases required alignment from 1 to 2
- [-Wcast-align]
- ...= ntohs(*((uint16_t *)(buf + 8)));
- ^~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
- #define ntohs(x) __DARWIN_OSSwapInt16(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:72:71: note: expanded from macro
- '__DARWIN_OSSwapInt16'
- ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _...
- ^
- /usr/include/libkern/_OSByteOrder.h:44:34: note: expanded from macro
- '__DARWIN_OSSwapConstInt16'
- ((__uint16_t)((((__uint16_t)(x) & 0xff00) >> 8) | \
- ^
- natpmp.c:244:56: warning: cast from 'unsigned char *' to 'uint16_t *'
- (aka 'unsigned short *') increases required alignment from 1 to 2
- [-Wcast-align]
- ...= ntohs(*((uint16_t *)(buf + 8)));
- ^~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
- #define ntohs(x) __DARWIN_OSSwapInt16(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:72:71: note: expanded from macro
- '__DARWIN_OSSwapInt16'
- ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _...
- ^
- /usr/include/libkern/_OSByteOrder.h:45:32: note: expanded from macro
- '__DARWIN_OSSwapConstInt16'
- (((__uint16_t)(x) & 0x00ff) << 8)))
- ^
- natpmp.c:244:56: warning: cast from 'unsigned char *' to 'uint16_t *'
- (aka 'unsigned short *') increases required alignment from 1 to 2
- [-Wcast-align]
- ...= ntohs(*((uint16_t *)(buf + 8)));
- ^~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
- #define ntohs(x) __DARWIN_OSSwapInt16(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:72:89: note: expanded from macro
- '__DARWIN_OSSwapInt16'
- ...? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
- ^
- natpmp.c:245:61: warning: cast from 'unsigned char *' to 'uint16_t *'
- (aka 'unsigned short *') increases required alignment from 1 to 2
- [-Wcast-align]
- ...= ntohs(*((uint16_t *)(buf + 10)));
- ^~~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
- #define ntohs(x) __DARWIN_OSSwapInt16(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:72:40: note: expanded from macro
- '__DARWIN_OSSwapInt16'
- ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x...
- ^
- natpmp.c:245:61: warning: cast from 'unsigned char *' to 'uint16_t *'
- (aka 'unsigned short *') increases required alignment from 1 to 2
- [-Wcast-align]
- ...= ntohs(*((uint16_t *)(buf + 10)));
- ^~~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
- #define ntohs(x) __DARWIN_OSSwapInt16(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:72:71: note: expanded from macro
- '__DARWIN_OSSwapInt16'
- ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _...
- ^
- /usr/include/libkern/_OSByteOrder.h:44:34: note: expanded from macro
- '__DARWIN_OSSwapConstInt16'
- ((__uint16_t)((((__uint16_t)(x) & 0xff00) >> 8) | \
- ^
- natpmp.c:245:61: warning: cast from 'unsigned char *' to 'uint16_t *'
- (aka 'unsigned short *') increases required alignment from 1 to 2
- [-Wcast-align]
- ...= ntohs(*((uint16_t *)(buf + 10)));
- ^~~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
- #define ntohs(x) __DARWIN_OSSwapInt16(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:72:71: note: expanded from macro
- '__DARWIN_OSSwapInt16'
- ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _...
- ^
- /usr/include/libkern/_OSByteOrder.h:45:32: note: expanded from macro
- '__DARWIN_OSSwapConstInt16'
- (((__uint16_t)(x) & 0x00ff) << 8)))
- ^
- natpmp.c:245:61: warning: cast from 'unsigned char *' to 'uint16_t *'
- (aka 'unsigned short *') increases required alignment from 1 to 2
- [-Wcast-align]
- ...= ntohs(*((uint16_t *)(buf + 10)));
- ^~~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:132:39: note: expanded from macro 'ntohs'
- #define ntohs(x) __DARWIN_OSSwapInt16(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:72:89: note: expanded from macro
- '__DARWIN_OSSwapInt16'
- ...? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
- ^
- natpmp.c:246:53: warning: cast from 'unsigned char *' to 'uint32_t *'
- (aka 'unsigned int *') increases required alignment from 1 to 4
- [-Wcast-align]
- ...response->pnu.newportmapping.lifetime = ntohl(*((uint32_t *)(buf + 12)));
- ^~~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
- #define ntohl(x) __DARWIN_OSSwapInt32(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:75:27: note: expanded from macro
- '__DARWIN_OSSwapInt32'
- (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
- ^
- natpmp.c:246:53: warning: cast from 'unsigned char *' to 'uint32_t *'
- (aka 'unsigned int *') increases required alignment from 1 to 4
- [-Wcast-align]
- ...response->pnu.newportmapping.lifetime = ntohl(*((uint32_t *)(buf + 12)));
- ^~~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
- #define ntohl(x) __DARWIN_OSSwapInt32(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:75:58: note: expanded from macro
- '__DARWIN_OSSwapInt32'
- (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
- ^
- /usr/include/libkern/_OSByteOrder.h:48:34: note: expanded from macro
- '__DARWIN_OSSwapConstInt32'
- ((__uint32_t)((((__uint32_t)(x) & 0xff000000) >> 24) | \
- ^
- natpmp.c:246:53: warning: cast from 'unsigned char *' to 'uint32_t *'
- (aka 'unsigned int *') increases required alignment from 1 to 4
- [-Wcast-align]
- ...response->pnu.newportmapping.lifetime = ntohl(*((uint32_t *)(buf + 12)));
- ^~~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
- #define ntohl(x) __DARWIN_OSSwapInt32(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:75:58: note: expanded from macro
- '__DARWIN_OSSwapInt32'
- (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
- ^
- /usr/include/libkern/_OSByteOrder.h:49:32: note: expanded from macro
- '__DARWIN_OSSwapConstInt32'
- (((__uint32_t)(x) & 0x00ff0000) >> 8) | \
- ^
- natpmp.c:246:53: warning: cast from 'unsigned char *' to 'uint32_t *'
- (aka 'unsigned int *') increases required alignment from 1 to 4
- [-Wcast-align]
- ...response->pnu.newportmapping.lifetime = ntohl(*((uint32_t *)(buf + 12)));
- ^~~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
- #define ntohl(x) __DARWIN_OSSwapInt32(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:75:58: note: expanded from macro
- '__DARWIN_OSSwapInt32'
- (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
- ^
- /usr/include/libkern/_OSByteOrder.h:50:32: note: expanded from macro
- '__DARWIN_OSSwapConstInt32'
- (((__uint32_t)(x) & 0x0000ff00) << 8) | \
- ^
- natpmp.c:246:53: warning: cast from 'unsigned char *' to 'uint32_t *'
- (aka 'unsigned int *') increases required alignment from 1 to 4
- [-Wcast-align]
- ...response->pnu.newportmapping.lifetime = ntohl(*((uint32_t *)(buf + 12)));
- ^~~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
- #define ntohl(x) __DARWIN_OSSwapInt32(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:75:58: note: expanded from macro
- '__DARWIN_OSSwapInt32'
- (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
- ^
- /usr/include/libkern/_OSByteOrder.h:51:32: note: expanded from macro
- '__DARWIN_OSSwapConstInt32'
- (((__uint32_t)(x) & 0x000000ff) << 24)))
- ^
- natpmp.c:246:53: warning: cast from 'unsigned char *' to 'uint32_t *'
- (aka 'unsigned int *') increases required alignment from 1 to 4
- [-Wcast-align]
- ...response->pnu.newportmapping.lifetime = ntohl(*((uint32_t *)(buf + 12)));
- ^~~~~~~~~~~~~~~~~~~~~~
- /usr/include/sys/_endian.h:135:39: note: expanded from macro 'ntohl'
- #define ntohl(x) __DARWIN_OSSwapInt32(x)
- ^
- /usr/include/libkern/_OSByteOrder.h:75:76: note: expanded from macro
- '__DARWIN_OSSwapInt32'
- (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
- ^
- getgateway.c:210:9: warning: cast from 'char *' to 'struct rt_msghdr *'
- increases required alignment from 1 to 4 [-Wcast-align]
- rt = (struct rt_msghdr *)p;
- ^~~~~~~~~~~~~~~~~~~~~
- getgateway.c:223:9: warning: cast from 'struct sockaddr *' to
- 'struct sockaddr_in *' increases required alignment from 1 to 4
- [-Wcast-align]
- ...if(((struct sockaddr_in *)sa_tab[RTAX_DST])->sin_addr.s_addr == 0) {
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- getgateway.c:224:15: warning: cast from 'struct sockaddr *' to
- 'struct sockaddr_in *' increases required alignment from 1 to 4
- [-Wcast-align]
- ...*addr = ((struct sockaddr_in *)(sa_tab[RTAX_GATEWAY]))->sin_addr.s_addr;
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 28 warnings generated.
- 3 warnings generated.
- AR libnatpmp.a
- /opt/local/bin/ranlib: file: libnatpmp.a(wingettimeofday.o) has no symbols
- ranlib: file: libnatpmp.a(wingettimeofday.o) has no symbols
- Making all in miniupnp
- Detected OS [Darwin] version [14.3.0]
- MiniUPnPc version [1.7]
- setting OS_STRING macro value to Darwin/14.3.0 in miniupnpcstrings.h.
- setting MINIUPNPC_VERSION_STRING macro value to 1.7 in miniupnpcstrings.h.
- CC connecthostport.o
- CC minisoap.o
- CC minissdpc.o
- error: unable to open output file 'minisoap.o': ''
- 1 error generated.
- make[3]: *** [minisoap.o] Error 1
- make[3]: *** Waiting for unfinished jobs....
- connecthostport.c:190:34: warning: cast from 'struct sockaddr *' to
- 'struct sockaddr_in6 *' increases required alignment from 1 to 4
- [-Wcast-align]
- ...struct sockaddr_in6 * addr6 = (struct sockaddr_in6 *)p->ai_addr;
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 1 warning generated.
- make[2]: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement