From 8fd954ac8e7fe5d2770d74c3780bdd5f44aa0906 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 26 Sep 2014 13:52:55 +0200 Subject: build: add -Wno-format-zero-length This warning makes absolutely no sense. Passing an empty string to printf-like functions is perfectly fine. In the OSD case, it just sets an empty message, practically clearing the OSD. --- player/osd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/osd.c') diff --git a/player/osd.c b/player/osd.c index f1495a21a9..15cceab95f 100644 --- a/player/osd.c +++ b/player/osd.c @@ -422,7 +422,7 @@ static void add_seek_osd_messages(struct MPContext *mpctx) if (mpctx->add_osd_seek_info & OSD_SEEK_INFO_TEXT) { // Never in term-osd mode if (mpctx->video_out && mpctx->opts->term_osd != 1) { - if (set_osd_msg(mpctx, 1, mpctx->opts->osd_duration, "%s", "")) + if (set_osd_msg(mpctx, 1, mpctx->opts->osd_duration, "")) mpctx->osd_show_pos = true; } } -- cgit v1.2.3