[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] x86/vmx: fix compilation after 997382
>>> On 14.02.17 at 11:37, <roger.pau@xxxxxxxxxx> wrote: > 997382 introduced the following errors: > > intr.c:342:46: error: address of array 'vlapic->regs->data' will always > evaluate to 'true' > [-Werror,-Wpointer-bool-conversion] > if ( vlapic && vlapic->regs->data ) > ~~ ~~~~~~~~~~~~~~^~~~ > intr.c:352:42: error: address of array 'pi_desc->pir' will always evaluate to > 'true' > [-Werror,-Wpointer-bool-conversion] > if ( pi_desc && pi_desc->pir ) > ~~ ~~~~~~~~~^~~ > Both of those checks are done against static arrays, which doesn't seem to > make > much sense, so just remove them. Darn, I had meant to check while massaging the patch, but then forgot. > Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> > --- > NB: maybe the first check should be against vlapic->regs? Yes, please. Or I can do this while committing. The subject, btw, should probably include "clang", as neither I nor osstest have an issue with gcc? Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |