We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d95e9f7 commit 2a944fbCopy full SHA for 2a944fb
src/ccutil/tprintf.h
@@ -33,8 +33,11 @@ TESS_API FILE *get_debugfp();
33
34
// Main logging function. Trace printf.
35
template <typename ... Types>
36
-auto tprintf(const char *format, Types && ... args) {
37
- return fprintf(get_debugfp(), format, std::forward<Types>(args)...);
+auto tprintf(Types && ... args) {
+#pragma clang diagnostic push
38
+#pragma clang diagnostic ignored "-Wformat-security"
39
+ return fprintf(get_debugfp(), std::forward<Types>(args)...);
40
+#pragma clang diagnostic pop
41
}
42
43
} // namespace tesseract
0 commit comments