Hello,
Iam seeing below error for couple of weeks. Can you please look into the issue.
depbase=`echo test_multipathio_async_caw.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -DHAVE_CONFIG_H -I. -I.. -I. -I./../include "-D_U_=__attribute__((unused)) " "-D_R_(A,B)=__attribute__((format(printf,A,B)))" -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wno-strict-aliasing -Werror -Wwrite-strings -g -O2 -MT test_multipathio_async_caw.o -MD -MP -MF $depbase.Tpo -c -o test_multipathio_async_caw.o test_multipathio_async_caw.c &&\ mv -f $depbase.Tpo $depbase.Po make[1]: Leaving directory `/libiscsitest/test-tool' [WARN] 2016-03-22 13:39:19.312428 ============================================================ [WARN] 2016-03-22 13:39:19.312498 ====== TEST FAIL [WARN] 2016-03-22 13:39:19.312519 ============================================================ test_multipathio_async_caw.c: In function ‘test_mpio_async_caw’: test_multipathio_async_caw.c:105:9: error: missing initializer [-Werror=missing-field-initializers] test_multipathio_async_caw.c:105:9: error: (near initialization for ‘state.completed’) [-Werror=missing-field-initializers] cc1: all warnings being treated as errors make[1]: *** [test_multipathio_async_caw.o] Error 1 make: *** [install-recursive] Error 1
Thanks
missing-field-initializers
So this do not work since the struct is missing initializers This is a known issue reported by others
The root of the problem is the flagmissing-field-initializers
So this do not work since the struct is missing initializers
struct test_mpio_async_caw_state state = { 0 };