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

j2k.cpp > comparison of address of 'p_j2k->m_cp.tcps[0].m_data' not equal to a null pointer is always true #1020

Closed
bommo1 opened this issue Sep 19, 2017 · 1 comment

Comments

@bommo1
Copy link

bommo1 commented Sep 19, 2017

latest commit.
Compilation fails with AppleClang 8.1.0.8020042:

j2k.cpp:9244:34: error: comparison of address of 'p_j2k->m_cp.tcps[0].m_data' not equal to a null pointer is always true [-Werror,-Wtautological-pointer-compare]
&p_j2k->m_cp.tcps[0].m_data != NULL) {
~~~~~~~~~~~~~~~~~~~~^~~~~~ ~~~~

@rouault
Copy link
Collaborator

rouault commented Sep 19, 2017

Fixed. Thanks

@rouault rouault closed this as completed Sep 19, 2017
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

2 participants