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

Re: [Xen-devel] [PATCH v2] Avoid clang prior initialization error when listing MTRR flags



Hi,

On 09/24/2014 01:17 PM, Jan Beulich wrote:
>>>> On 24.09.14 at 11:49, <saper@xxxxxxxxxx> wrote:
>> Clang 3.4 complains when compiling range of designated range
>> initializers:
>>
>> generic.c:95:32: error: initializer overrides prior initialization of this 
>> subobject [-Werror,-Winitializer-overrides]
>>                 [MTRR_TYPE_UNCACHABLE]     = "uncachable",
>>                                              ^~~~~~~~~~~~
>> 6 errors generated.
>>
>> Signed-off-by: Marcin Cieslak <saper@xxxxxxxxxx>
> 
> Introducing a second lookup level for dealing with a bogus compiler
> warning is definitely not the route we want to go. As said before -
> a patch to turn off that warning would be fine, but I don't think any
> other one would be.

I have sent a patch to disable initializer-overrides warning few months
ago. See https://patches.linaro.org/27060/.

I haven't had time to rework my clang series. It may be interesting to
give a look at it and made the change request. IIRC, most of the patches
were already acked/reviewed.

http://lists.xenproject.org/archives/html/xen-devel/2014-03/msg03239.html

Regards,

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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