[Spice-devel] [PATCH 12/18] Remove warnings from reds_stat utility

Christophe Fergeau cfergeau at redhat.com
Tue Sep 27 12:59:38 UTC 2016


On Tue, Sep 27, 2016 at 02:56:44PM +0200, Pavel Grunt wrote:
> On Tue, 2016-09-27 at 14:49 +0200, Christophe Fergeau wrote:
> > On Mon, Sep 26, 2016 at 09:12:45AM +0100, Frediano Ziglio wrote:
> > >      while (1) {
> > > -        system("clear");
> > > +        ignore_result(system("clear"));
> > 
> > 
> > Dunno how robust it is wrt to future gcc versions. Could be
> > assert(...)
> > too even though not being able to clear the screen shouldn't be that
> > critical.
> what about g_warn_if_fail ?

Yup, good idea.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160927/f3c6c3b9/attachment.sig>


More information about the Spice-devel mailing list