Re: format string is not a string literal

Pedro Alves
2015-02-26T18:34:54Z

On 02/26/2015 04:48 PM, Jack Howarth wrote:
> Pedro,
> It is almost complete except for...
>
> ctf.c:109:39: warning: format string is not a string literal
> [-Wformat-nonliteral]
> if (vfprintf (handler->metadata_fd, format, args) < 0)
> ^~~~~~
>
> and
>
> ./guile/scm-utils.c:86:25: warning: format string is not a string
> literal [-Wformat-nonliteral]
> string = xstrvprintf (format, args);
> ^~~~~~
>

Thanks. I've fixed those and pushed it in:

https://sourceware.org/ml/gdb-patches/2015-02/msg00780.html

Paul, I've improved the comment in vcomplain to clarify
the solution. Thanks for poking about that.

Thanks,
Pedro Alves