Timothy Redaelli <[email protected]> writes: > test_snprintf function (tests/test-util.c) tests snprintf with shorter length, > but this emit a warning on GCC 7.0 or later. > > This commit disables that warning on tests only. > > Signed-off-by: Timothy Redaelli <[email protected]> > ---
As an alternative, would it make sense to modify the test in question to use xasprintf? Such function calls into ovs_snprintf on WIN32 platforms, anyway. I think the warning itself is busted here anyway, so I guess it's such a big deal, but sometimes I get scared to disable warnings. _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
