|
From: Hans-Bernhard B. <HBB...@t-...> - 2011-01-19 18:34:43
|
On 19.01.2011 04:08, Ethan Merritt wrote:
> On Tuesday, January 18, 2011, Mojca Miklavec wrote:
>> ../term/post.trm:1819: warning: format not a string literal and no
>> format arguments
>>
>> This comes from
>> static char GPFAR psg1[] = "0 setgray\nnewpath\n";
>> fprintf(gppsfile, psg1);
>
> [\me scratches head] Sure looks like a string literal to me.
It's not. It's s string-valued variable.
The complaint is a bit vague, but what I'm pretty sure the compiler is
trying to tell us here is that it's kinda pointless to use *printf() if
you're not going to format any data into the output. It wants us to
replace the above fprintf() by either
fprintf(gppsfile, "%s", psg1);
or
fputs(psg1, gppsfile);
>> In gnuplot-mode:
>> gnuplot.el:2518:41:Warning: `make-variable-buffer-local' should be called at
>> toplevel
>
> I have no idea what this means, or even who is printing the error.
> Is that a message from emacs?
Yes.
|