[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] Add -Wcast-qual flag


  • To: Christoph Egger <Christoph.Egger@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <keir@xxxxxxxxxxxxx>
  • Date: Thu, 21 Dec 2006 10:41:53 +0000
  • Delivery-date: Thu, 21 Dec 2006 02:42:35 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Acck7KCu33GVOpDfEduxsQAX8io7RQ==
  • Thread-topic: [Xen-devel] [PATCH] Add -Wcast-qual flag

On 21/12/06 10:05, "Christoph Egger" <Christoph.Egger@xxxxxxx> wrote:

> The xen-cast.diff adds the -Wcast-qual flag.

We don't enable this flag precisely because we end up needing to scatter
const all over the place like confetti. I'm not convinced that use of const
improves code quality. I fear we'd end up with 'const foo * const bar' all
over the place -- ugly and confusing to most programmers (who frequently
mess up const placement, in my experience).

 -- Keir


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.