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

-Wtautological-undefined-compare warning in split.cpp #22

Closed
rmtheis opened this issue May 18, 2015 · 2 comments
Closed

-Wtautological-undefined-compare warning in split.cpp #22

rmtheis opened this issue May 18, 2015 · 2 comments

Comments

@rmtheis
Copy link
Contributor

rmtheis commented May 18, 2015

I get a -Wtautological-undefined-compare warning when building for Android using clang and tess-two:

jni/com_googlecode_tesseract_android/src/ccstruct/split.cpp:223:7: warning: 'this' pointer cannot be null in well-defined C++ code; comparison may be assumed to always evaluate to true [-Wtautological-undefined-compare]
  if (this != NULL) {
      ^~~~    ~~~~
@tfmorris
Copy link
Contributor

Both #21 and #22 are caused by something buried inside the tprintf() macro expansion.

@rmtheis
Copy link
Contributor Author

rmtheis commented Mar 11, 2016

This was fixed in 4fdf272.

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