Skip to content

-Wtautological-undefined-compare warning in tabvector.cpp #21

@rmtheis

Description

@rmtheis

Another -Wtautological-undefined-compare warning when building for Android using clang and tess-two:

jni/com_googlecode_tesseract_android/src/textord/tabvector.cpp:526:7: warning: 'this' pointer cannot be null in well-defined C++ code; comparison may be assumed to always evaluate to false [-Wtautological-undefined-compare]
  if (this == NULL) {
      ^~~~    ~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions