[dpdk-dev] [PATCH v6 1/2] test/compress: add checksum tests
De Lara Guarch, Pablo
pablo.de.lara.guarch at intel.com
Tue Jan 8 15:58:39 CET 2019
Hi Lee,
> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Lee Daly
> Sent: Tuesday, January 8, 2019 10:29 AM
> To: akhil.goyal at nxp.com
> Cc: dev at dpdk.org; Varghese, Vipin <vipin.varghese at intel.com>; Daly, Lee
> <lee.daly at intel.com>
> Subject: [dpdk-dev] [PATCH v6 1/2] test/compress: add checksum tests
> +
> + struct rte_comp_xform *compress_xform =
> + rte_malloc(NULL, sizeof(struct rte_comp_xform), 0);
> + if (compress_xform == NULL) {
> + RTE_LOG(ERR, USER1, "Compress xform could not be
> created\n");
test/test/test_compressdev.c:1531:6: error: variable 'decompress_xform' is used uninitialized whenever 'if' condition is true
[-Werror,-Wsometimes-uninitialized]
if (compress_xform == NULL) {
^~~~~~~~~~~~~~~~~~~~~~
test/test/test_compressdev.c:1661:11: note: uninitialized use occurs here
rte_free(decompress_xform);
^~~~~~~~~~~~~~~~
There are clang compilation issues iwith this patch.
Could you fix them?
Thanks,
Pablo
More information about the dev
mailing list