From 87e9cd13aa35286b0dad667d1e66f91798fddbe7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 22 Jul 2017 22:08:23 +0200 Subject: vo_opengl: add printf format checking to pass_describe() --- video/out/opengl/video.c | 1 + 1 file changed, 1 insertion(+) diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index 2fe0d14986..ba54dd4c6c 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -989,6 +989,7 @@ static void pass_record(struct gl_video *p, struct mp_pass_perf perf) p->pass_idx++; } +PRINTF_ATTRIBUTE(2, 3) static void pass_describe(struct gl_video *p, const char *textf, ...) { if (!p->pass || p->pass_idx == PASS_INFO_MAX) -- cgit v1.2.3