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

Fix build warning #92

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

seven1240
Copy link
Contributor

fix some build warnings on macOS


stun_dns.c:95:19: warning: address of array 'rr->srv_record' will always evaluate to 'true' [-Wpointer-bool-conversion]
    if (rr && rr->srv_record && rr->srv_record->r_type == sres_type_srv) {
           ~~ ~~~~^~~~~~~~~~


nua_stack.c:243:30: warning: extra tokens at end of #endif directive [-Wextra-tokens]
#endif                  /* End NRC Boston */}
                                            ^
                                            //
nua.c:1101:16: warning: address of array 'nh->nh_ds' will always evaluate to 'true' [-Wpointer-bool-conversion]
        if (nh && nh->nh_ds)
               ~~ ~~~~^~~~~
nua.c:1110:16: warning: address of array 'nh->nh_home' will always evaluate to 'true' [-Wpointer-bool-conversion]
        if (nh && nh->nh_home)
               ~~ ~~~~^~~~~~~
nua.c:1119:18: warning: address of array 'nua->nua_home' will always evaluate to 'true' [-Wpointer-bool-conversion]
        if (nua && nua->nua_home)
                ~~ ~~~~~^~~~~~~~
nua.c:1150:16: warning: address of array 'nh->nh_ds' will always evaluate to 'true' [-Wpointer-bool-conversion]
        if (nh && nh->nh_ds && nh->nh_ds->ds_usage) {
               ~~ ~~~~^~~~~

warning: address of array 'rr->srv_record' will always evaluate to 'true'
nua.c:1101:16: warning: address of array 'nh->nh_ds' will always evaluate to 'true' [-Wpointer-bool-conversion]
        if (nh && nh->nh_ds)
               ~~ ~~~~^~~~~
nua.c:1110:16: warning: address of array 'nh->nh_home' will always evaluate to 'true' [-Wpointer-bool-conversion]
        if (nh && nh->nh_home)
               ~~ ~~~~^~~~~~~
nua.c:1119:18: warning: address of array 'nua->nua_home' will always evaluate to 'true' [-Wpointer-bool-conversion]
        if (nua && nua->nua_home)
                ~~ ~~~~~^~~~~~~~
nua.c:1150:16: warning: address of array 'nh->nh_ds' will always evaluate to 'true' [-Wpointer-bool-conversion]
        if (nh && nh->nh_ds && nh->nh_ds->ds_usage) {
               ~~ ~~~~^~~~~
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 this pull request may close these issues.

None yet

1 participant