Can you show the heartrate in Subsurface?

Oscar Isoz jan.oscar.isoz at gmail.com
Mon Jan 20 04:29:52 UTC 2014


Yep that made the compiler happy (gcc 4.8.1)

/Oscar

On Sat, Jan 18, 2014 at 9:03 PM, Linus Torvalds <
torvalds at linux-foundation.org> wrote:

> On Sat, Jan 18, 2014 at 6:52 AM, Oscar Isoz <jan.oscar.isoz at gmail.com>
> wrote:
> > Hello Linus
> >
> > It seems as your latest patch generates some warnings when I run make
> >
> > profile.c: In function ‘plot_string’:
> > profile.c:1396:3: warning: format not a string literal and no format
> > arguments [-Wformat-security]
> >    put_format(b, translate("gettextFromC","In deco\n"));
> >    ^
> > profile.c:1410:3: warning: format not a string literal and no format
> > arguments [-Wformat-security]
> >    put_format(b, translate("gettextFromC","In deco (calc)\n"));
> >    ^
> >
> > Is this expected?
>
> Hmm. I don't see it, but I guess it depends on the compiler.
>
> Those two lines could use "put_string()" instead of "put_format()"
> (since there are no format arguments), that should shut the compiler
> up about it.
>
>               Linus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140120/81dc9d3f/attachment.html>


More information about the subsurface mailing list