Merge branch 'wextra'

This commit is contained in:
Arttu Ylä-Outinen 2018-06-12 14:03:13 +03:00
commit a3274de3b4
4 changed files with 4 additions and 4 deletions

View file

@ -53,7 +53,7 @@ AM_CONDITIONAL([HAVE_AVX2], [test x"$flag_avx2" = x"true"])
AM_CONDITIONAL([HAVE_SSE4_1], [test x"$flag_sse4_1" = x"true"]) AM_CONDITIONAL([HAVE_SSE4_1], [test x"$flag_sse4_1" = x"true"])
AM_CONDITIONAL([HAVE_SSE2], [test x"$flag_sse2" = x"true"]) AM_CONDITIONAL([HAVE_SSE2], [test x"$flag_sse2" = x"true"])
KVZ_CFLAGS="-Wall -Wtype-limits -Wvla -I$srcdir/src -I$srcdir/src/extras -ftree-vectorize -fvisibility=hidden" KVZ_CFLAGS="-Wall -Wextra -Wvla -Wno-sign-compare -Wno-unused-parameter -I$srcdir/src -I$srcdir/src/extras -ftree-vectorize -fvisibility=hidden"
CFLAGS="$KVZ_CFLAGS $CFLAGS" CFLAGS="$KVZ_CFLAGS $CFLAGS"
AC_SEARCH_LIBS([log], [m c], [], [exit 1]) AC_SEARCH_LIBS([log], [m c], [], [exit 1])

View file

@ -186,7 +186,7 @@ SUITE(dct_tests)
// Loop through all strategies picking out the intra sad ones and run // Loop through all strategies picking out the intra sad ones and run
// select strategies though all tests // select strategies though all tests
for (unsigned i = 0; i < strategies.count; ++i) { for (volatile unsigned i = 0; i < strategies.count; ++i) {
const strategy_t * strategy = &strategies.strategies[i]; const strategy_t * strategy = &strategies.strategies[i];
// Select buffer width according to function name for dct function. // Select buffer width according to function name for dct function.

View file

@ -329,7 +329,7 @@ SUITE(sad_tests)
setup_tests(); setup_tests();
for (unsigned i = 0; i < strategies.count; ++i) { for (volatile unsigned i = 0; i < strategies.count; ++i) {
if (strcmp(strategies.strategies[i].type, "reg_sad") != 0) { if (strcmp(strategies.strategies[i].type, "reg_sad") != 0) {
continue; continue;
} }

View file

@ -355,7 +355,7 @@ SUITE(speed_tests)
// Loop through all strategies picking out the intra sad ones and run // Loop through all strategies picking out the intra sad ones and run
// selectec strategies though all tests // selectec strategies though all tests
for (unsigned i = 0; i < strategies.count; ++i) { for (volatile unsigned i = 0; i < strategies.count; ++i) {
const strategy_t * strategy = &strategies.strategies[i]; const strategy_t * strategy = &strategies.strategies[i];
// Select buffer width according to function name. // Select buffer width according to function name.