summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/utils.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-07-24 07:21:25 +0200
committerwm4 <wm4@nowhere>2017-07-24 08:08:02 +0200
commit3d0f86145ce211eee623b661d558ef3405d75933 (patch)
tree0da2a3e6da3c4a6c798a7f2a028fccda2fbf2426 /video/out/opengl/utils.h
parent64d56114ed9258efe2e864315d7130bb58a03d52 (diff)
downloadmpv-3d0f86145ce211eee623b661d558ef3405d75933.tar.bz2
mpv-3d0f86145ce211eee623b661d558ef3405d75933.tar.xz
vo_opengl: check format on some printf-like calls
Fix 1 incorrect use.
Diffstat (limited to 'video/out/opengl/utils.h')
-rw-r--r--video/out/opengl/utils.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/video/out/opengl/utils.h b/video/out/opengl/utils.h
index 1ae2f0f330..4327b74b8f 100644
--- a/video/out/opengl/utils.h
+++ b/video/out/opengl/utils.h
@@ -135,9 +135,11 @@ void gl_sc_destroy(struct gl_shader_cache *sc);
bool gl_sc_error_state(struct gl_shader_cache *sc);
void gl_sc_reset_error(struct gl_shader_cache *sc);
void gl_sc_add(struct gl_shader_cache *sc, const char *text);
-void gl_sc_addf(struct gl_shader_cache *sc, const char *textf, ...);
+void gl_sc_addf(struct gl_shader_cache *sc, const char *textf, ...)
+ PRINTF_ATTRIBUTE(2, 3);
void gl_sc_hadd(struct gl_shader_cache *sc, const char *text);
-void gl_sc_haddf(struct gl_shader_cache *sc, const char *textf, ...);
+void gl_sc_haddf(struct gl_shader_cache *sc, const char *textf, ...)
+ PRINTF_ATTRIBUTE(2, 3);
void gl_sc_hadd_bstr(struct gl_shader_cache *sc, struct bstr text);
void gl_sc_uniform_tex(struct gl_shader_cache *sc, char *name, GLenum target,
GLuint texture);