[dpdk-dev] [PATCH] eal: fix compilation when optimization level is O1

2016-10-06 Thread Thomas Monjalon
2016-09-19 14:26, Olivier Matz: > When compiled with EXTRA_CFLAGS="-O1", the compiler is not > able to detect that size is always initialized when used, and > issues a wrong warning: > > eal_memory.c: In function ?rte_eal_hugepage_attach?: > eal_memory.c:1684:3: error: ?size? may be used unini

[dpdk-dev] [PATCH] eal: fix compilation when optimization level is O1

2016-09-19 Thread Olivier Matz
When compiled with EXTRA_CFLAGS="-O1", the compiler is not able to detect that size is always initialized when used, and issues a wrong warning: eal_memory.c: In function ?rte_eal_hugepage_attach?: eal_memory.c:1684:3: error: ?size? may be used uninitialized in this func