[dpdk-dev] [PATCH] ena: icc fix compilation warning #3656
Thomas Monjalon
thomas.monjalon at 6wind.com
Wed Apr 6 15:48:36 CEST 2016
2016-04-06 13:17, Ferruh Yigit:
> With (ICC) 16.0.2 20160204, getting following warnings:
>
> .../drivers/net/ena/base/ena_com.c(492): error #3656: variable
> "flags" may be used before its value is set
> ENA_SPINLOCK_LOCK(admin_queue->q_lock, flags);
>
> .../drivers/net/ena/base/ena_com.c(1971): error #3656: variable
> "mem_handle" may be used before its value is set
> ENA_MEM_ALLOC_COHERENT(ena_dev->dmadev, len,
>
> For both warnings the variable value is ignored, so there is no defect.
> To comfort compiler warning, a initial value provided to variables.
>
> Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>
Applied, thanks
More information about the dev
mailing list