build: add picky compiler warning flags for gcc 6 and 7

This commit is contained in:
Eric Gallager 2018-02-12 01:42:47 -05:00 committed by Daniel Stenberg
parent 4e884615d1
commit a19fefb070
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
6 changed files with 25 additions and 5 deletions

View file

@ -1010,7 +1010,7 @@ static CURLcode tftp_connect(struct connectdata *conn, bool *done)
state->requested_blksize = blksize;
((struct sockaddr *)&state->local_addr)->sa_family =
(unsigned short)(conn->ip_addr->ai_family);
(sa_family_t)(conn->ip_addr->ai_family);
tftp_set_timeouts(state);