2015-11-02 02:18, Xie, Huawei: > On 10/31/2015 2:21 AM, Thomas Monjalon wrote: > > Sorry, there is a clang error. > > > > 2015-10-29 22:53, Huawei Xie: > >> + _mm_prefetch((const void *)rused, _MM_HINT_T0); > > virtio_rxtx_simple.c:197:2: error: cast from 'const void *' to > > 'void *' drops const qualifier > This is weird. This conversion is actually from 'void *' to 'const void > *', not the opposite, so there should be no error. > I checked clang build, it doesn't report error. > clang version 3.3 (tags/RELEASE_33/rc2)
I'm using clang 3.6.2. Anybody else to check please?