[Spice-devel] [PATCH xf86-video-qxl 04/13] qxl_driver: cleanup: fix const cast warnings

Alon Levy alevy at redhat.com
Wed Apr 11 04:05:17 PDT 2012


On Wed, Apr 11, 2012 at 12:46:18PM +0200, Christophe Fergeau wrote:
> On Tue, Apr 10, 2012 at 04:02:56PM +0300, Alon Levy wrote:
> > My bad for not putting it in. It's warning on a const attribute removal
> > cast, since a static string "bla" is (const char*).
> 
> For the record, the warning is -Wcast-qual. While this patch is okayish,
> the 2 other similar patches are a bit ugly imo. Maybe we could use a pragma
> to disable this warning around the initialisation of X structures?
> 
> Christophe

Which pragma does that?

> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel



More information about the Spice-devel mailing list