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

compiler warnings on debian 11 #208

Open
seven1240 opened this issue Mar 17, 2023 · 0 comments
Open

compiler warnings on debian 11 #208

seven1240 opened this issue Mar 17, 2023 · 0 comments

Comments

@seven1240
Copy link
Contributor

sip_basic.c:2885:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
 2885 |           uri = pp + 1;
      |               ^
sip_basic.c:2905:40: warning: passing argument 3 of ‘msg_params_d’ from incompatible pointer type [-Wincompatible-pointer-types]
 2905 |           if (msg_params_d(home, &ext, &params) >= 0) {
      |                                        ^~~~~~~
      |                                        |
      |                                        const char ***
In file included from sofia-sip/sip_parser.h:52,
                 from sip_basic.c:46:
./../msg/sofia-sip/msg_parser.h:280:27: note: expected ‘const char * const**’ but argument is of type ‘const char ***’
  280 |       msg_param_t const **return_params);
      |       ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
stun.c: In function ‘stun_tls_callback’:
stun.c:1371:5: warning: ‘TLSv1_client_method’ is deprecated [-Wdeprecated-declarations]
 1371 |     ctx = SSL_CTX_new(TLSv1_client_method());
      |     ^~~
nua_params.h:261:22: warning: assignment to ‘const char *’ from ‘tag_value_t’ {aka ‘long int’} makes pointer from integer without a cast [-Wint-conversion]
  261 |   ((nhp)->nhp_##pref = (value),      \
      |                      ^
nua_params.c:1044:7: note: in expansion of macro ‘NHP_SET’
 1044 |       NHP_SET(nhp, ws_handshake_origin, value);
      |       ^~~~~~~
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

No branches or pull requests

1 participant