[dpdk-dev] [virtio-net-pmd PATCH 08/16] pmd: fix initialization of Tx queue header

Olivier MATZ olivier.matz at 6wind.com
Thu Mar 27 09:23:40 CET 2014


Hello Thomas,

On 02/04/2014 04:54 PM, Thomas Monjalon wrote:
> A typo was found by gcc-4.8:
> virtio_user.c:744:15: error: argument to 'sizeof' in 'memset' call is the
> same expression as the destination; did you mean to dereference it?
> [-Werror=sizeof-pointer-memaccess]
>           sizeof(tq->tx_hdrs[sz - 1].header));
>                 ^
>
> Signed-off-by: Thomas Monjalon <thomas.monjalon at 6wind.com>

Reviewed-by: Olivier Matz <olivier.matz at 6wind.com>



More information about the dev mailing list