[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC (fix for 5.0?)] block/io: do not do pointer arithmetic on void
From: |
Stefan Hajnoczi |
Subject: |
Re: [RFC (fix for 5.0?)] block/io: do not do pointer arithmetic on void * |
Date: |
Fri, 20 Mar 2020 16:08:14 +0000 |
On Wed, Mar 18, 2020 at 02:26:54PM +0000, Daniel P. Berrangé wrote:
> On Wed, Mar 18, 2020 at 05:22:53PM +0300, Vladimir Sementsov-Ogievskiy wrote:
> > Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
> > ---
> >
> > Hi all!
> >
> > C standard doesn't allow pointer arithmetic on void *.
> > Still, gcc allows it as an extension:
> > https://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/Pointer-Arith.html
> >
> > I can create a series of patches like this. Do we need it?
>
> I don't think so, we only care about gcc & clang.
I agree with Dan.
Stefan
signature.asc
Description: PGP signature