Skip to content

Format specifier warning in pdfrenderer.cpp #20

@rmtheis

Description

@rmtheis

I get a format specifier warning when building for Android using clang and tess-two:

jni/com_googlecode_tesseract_android/src/api/pdfrenderer.cpp:537:28: warning: format specifies type 'long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
               "stream\n", len);
                           ^~~

I think it should be %zd or %zu instead of %ld, but I'm not sure if that works on Visual Studio too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions