Yarr: Fix developer build with MinGW 64
Use the MinGW/Windows runtime specific printf formats for size_t, formats, fixing: 3rdparty\masm\yarr\YarrInterpreter.cpp: In lambda function: 3rdparty\masm\yarr\YarrInterpreter.cpp:2128:24: error: unknown conversion type character 'z' in format [-Werror=format=] out.printf("%4zu", index); ^~~~~~ 3rdparty\masm\yarr\YarrInterpreter.cpp:2128:24: error: too many arguments for format [-Werror=format-extra-args] cc1plus.exe: all warnings being treated as errors Change-Id: I9d39c51b907fc7834aaf353dd0ce8095852f9b3e Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
4651aecaee
commit
dcf41b5f69
|
@ -2125,7 +2125,15 @@ public:
|
|||
auto outputTermIndexAndNest = [&](size_t index, unsigned termNesting) {
|
||||
for (unsigned nestingDepth = 0; nestingDepth < termIndexNest; nestingDepth++)
|
||||
out.print(" ");
|
||||
#if defined(WIN32) && defined(__MINGW32__)
|
||||
# if __SIZEOF_POINTER__ == 8
|
||||
out.printf("%4I64u", index);
|
||||
# else
|
||||
out.printf("%4I32u", index);
|
||||
# endif
|
||||
#else
|
||||
out.printf("%4zu", index);
|
||||
#endif
|
||||
for (unsigned nestingDepth = 0; nestingDepth < termNesting; nestingDepth++)
|
||||
out.print(" ");
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue