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

-Wpointer-bool-conversion warnings #225

Open
ryandesign opened this issue Jul 6, 2023 · 0 comments
Open

-Wpointer-bool-conversion warnings #225

ryandesign opened this issue Jul 6, 2023 · 0 comments

Comments

@ryandesign
Copy link
Contributor

These warnings appears when compiling with a modern Clang compiler:

scache.c:101:15: warning: address of array 'ptr->name' will always evaluate to 'true' [-Wpointer-bool-conversion]
            if (ptr->name)
            ~~  ~~~~~^~~~
ssl.c:352:30: warning: address of array 'sptr->user->username' will always evaluate to 'true' [-Wpointer-bool-conversion]
                (sptr->user && sptr->user->username) ? sptr->user->
                            ~~ ~~~~~~~~~~~~^~~~~~~~
ssl.c:358:40: warning: address of array 'sptr->user->username' will always evaluate to 'true' [-Wpointer-bool-conversion]
            (sptr->user && sptr->user->username) ? sptr->user->
                        ~~ ~~~~~~~~~~~~^~~~~~~~
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