ced3e6f81b
There are two new warnings in GCC 7 that cause problems in the DPDK compile. 1. GCC now warns if you have a switch fall-through without a suitable comment indicating that it was intentional. The compiler supports a number of levels of warning which are triggered depending on the type of message used, with level 3 being the default. To accept a wider range of possible fall-through messages, we adjust this down to level 2. 2. GCC also warns about an snprintf where there may be truncation and the return value is not checked. Given that we often use snprintf in DPDK in place of strncpy, and in many cases where truncation is not a problem, we can just disable this particular warning. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>