gstreamer 1.6.0 compile error (g_strdup_vprintf)
Nirbheek Chauhan
nirbheek.chauhan at gmail.com
Mon Sep 28 07:32:47 PDT 2015
On Mon, Sep 28, 2015 at 7:39 PM, Steve Yun (윤종희) <yun.jonghee at gmail.com> wrote:
> Hi there,
>
> I meet compile error when compiling gstreamer 1.6.0.
>
> CC libgstcheck_1.0_la-gstbufferstraw.lo
> CC libgstcheck_1.0_la-gstcheck.lo
> gstcheck.c:1033:27: error: format string is not a string literal
> [-Werror,-Wformat-nonliteral]
> msg = g_strdup_vprintf (expr, args);
> ^~~~
It seems this was broken by f409dd48
(https://bugzilla.gnome.org/show_bug.cgi?id=755019). An indentation
change removed the G_GNUC_PRINTF macro that was silencing this
warning. This is only visible on clang because only clang applies the
-Wformat-nonliteral flag to function definitions that take va_list
arguments.
--
~Nirbheek Chauhan
More information about the gstreamer-devel
mailing list