mirror of
https://github.com/curl/curl.git
synced 2026-08-26 11:43:32 +03:00
build: add picky compiler warning flags for gcc 6 and 7
This commit is contained in:
parent
4e884615d1
commit
a19fefb070
6 changed files with 25 additions and 5 deletions
|
|
@ -345,7 +345,7 @@ Curl_he2ai(const struct hostent *he, int port)
|
|||
addr = (void *)ai->ai_addr; /* storage area for this info */
|
||||
|
||||
memcpy(&addr->sin_addr, curr, sizeof(struct in_addr));
|
||||
addr->sin_family = (unsigned short)(he->h_addrtype);
|
||||
addr->sin_family = (sa_family_t)(he->h_addrtype);
|
||||
addr->sin_port = htons((unsigned short)port);
|
||||
break;
|
||||
|
||||
|
|
@ -354,7 +354,7 @@ Curl_he2ai(const struct hostent *he, int port)
|
|||
addr6 = (void *)ai->ai_addr; /* storage area for this info */
|
||||
|
||||
memcpy(&addr6->sin6_addr, curr, sizeof(struct in6_addr));
|
||||
addr6->sin6_family = (unsigned short)(he->h_addrtype);
|
||||
addr6->sin6_family = (sa_family_t)(he->h_addrtype);
|
||||
addr6->sin6_port = htons((unsigned short)port);
|
||||
break;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue