muvarov replied on github web page: test/validation/api/pktio/pktio.c @@ -48,6 +48,9 @@ static int num_ifaces; interface that just become up.*/ static bool wait_for_network; +/* Dummy global variable to avoid compiler optimizing out API calls */ +uint64_t odp_valid_test_pktio_u64;
Comment: please rename it without odp_. And I would move it inside loop and make it volatile then declaring somewhere on the top. https://github.com/Linaro/odp/pull/242#discussion_r149913671 updated_at 2017-11-09 11:23:41