[poppler] poppler/Stream.h test/perf-test.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Sun Sep 17 21:04:24 UTC 2017
poppler/Stream.h | 2 +-
test/perf-test.cc | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 6b82904b717994c887f33bfc72e4999363fc8e72
Author: Albert Astals Cid <aacid at kde.org>
Date: Sun Sep 17 23:03:48 2017 +0200
Fix printf-like format warnings
diff --git a/poppler/Stream.h b/poppler/Stream.h
index 4f83275d..c2c48111 100644
--- a/poppler/Stream.h
+++ b/poppler/Stream.h
@@ -284,7 +284,7 @@ public:
void put (char c) override;
- void printf (const char *format, ...) override;
+ void printf (const char *format, ...) override GCC_PRINTF_FORMAT(2,3);
private:
FILE *f;
Goffset start;
diff --git a/test/perf-test.cc b/test/perf-test.cc
index 33a2eb49..bd455038 100644
--- a/test/perf-test.cc
+++ b/test/perf-test.cc
@@ -798,6 +798,8 @@ static void my_error(void *, ErrorCategory, Goffset pos, char *msg) {
#endif
}
+static void LogInfo(const char *fmt, ...) GCC_PRINTF_FORMAT(1, 2);
+
static void LogInfo(const char *fmt, ...)
{
va_list args;
More information about the poppler
mailing list