Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build warnings when HAVE_INET6 is off #216

Closed
alfredh opened this issue Feb 10, 2022 · 0 comments · Fixed by #219
Closed

build warnings when HAVE_INET6 is off #216

alfredh opened this issue Feb 10, 2022 · 0 comments · Fixed by #219

Comments

@alfredh
Copy link
Contributor

alfredh commented Feb 10, 2022

Debian 11:

alfredh@debian:~/git/re$ make HAVE_INET6= HAVE_INET6_IGNORE_DEPRECATED=1 1>/dev/null
src/http/client.c: In function ‘http_client_set_laddr6’:
src/http/client.c:1111:46: warning: unused parameter ‘cli’ [-Wunused-parameter]
 1111 | void http_client_set_laddr6(struct http_cli *cli, const struct sa *addr)
      |                             ~~~~~~~~~~~~~~~~~^~~
src/http/client.c:1111:68: warning: unused parameter ‘addr’ [-Wunused-parameter]
 1111 | void http_client_set_laddr6(struct http_cli *cli, const struct sa *addr)
      |                                                   ~~~~~~~~~~~~~~~~~^~~~
src/dns/client.c: In function ‘dnsc_alloc’:
src/dns/client.c:859:19: warning: unused variable ‘laddr6’ [-Wunused-variable]
  859 |  struct sa laddr, laddr6;
      |                   ^~~~~~
src/sa/sa.c: In function ‘sa_set_scopeid’:
src/sa/sa.c:696:45: warning: unused parameter ‘scopeid’ [-Wunused-parameter]
  696 | void sa_set_scopeid(struct sa *sa, uint32_t scopeid)
      |                                    ~~~~~~~~~^~~~~~~

it would be nice if building with this option gave zero warnings ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant