Netflix / vmaf

Perceptual video quality assessment based on multi-method fusion.
Other
4.59k stars 749 forks source link

2.3.1: a lot of compile time warnings #1013

Closed kloczek closed 2 years ago

kloczek commented 2 years ago

First of all summary stats:

[tkloczko@devel-g2v SPECS]$ rpmbuild -ba vmaf.spec  2>&1 | grep -- \\[-W | sed 's/.*\[//; s/\]//' | sort | uniq -c | sort -nr
     69 -Wincompatible-pointer-types
     64 -Wimplicit-fallthrough=
     37 -Wunused-variable
     11 -Wsign-compare
      6 -Wtype-limits
      5 -Wunused-but-set-variable
      3 -Wunknown-pragmas
      1 -Wsequence-point
      1 -Wdeprecated-declarations
kloczek commented 2 years ago

Extracted warnings from logs:

In file included from ../src/feature/integer_motion.c:29:
../src/feature/integer_motion.h: In function ‘edge_16’:
../src/feature/integer_motion.h:37:34: warning: operand of ‘?:’ changes signedness from ‘int’ to ‘unsigned int’ due to unsignedness of other operand [-Wsign-compare]
   37 |         int i_tap = horizontal ? i : i - radius + k;
      |                                  ^
../src/feature/integer_motion.h:38:51: warning: operand of ‘?:’ changes signedness from ‘int’ to ‘unsigned int’ due to unsignedness of other operand [-Wsign-compare]
   38 |         int j_tap = horizontal ? j - radius + k : j;
      |                                                   ^
test/test_predict.p/.._src_model.c.o.d -o test/test_predict.p/.._src_model.c.o -c ../src/model.c
../src/model.c: In function ‘vmaf_model_load’:
../src/model.c:99:28: warning: comparison is always false due to limited range of data type [-Wtype-limits]
   99 |     for (unsigned i = 0; i < BUILT_IN_MODEL_CNT; i++) {
      |                            ^
../src/model.c: In function ‘vmaf_model_collection_load’:
../src/model.c:259:28: warning: comparison is always false due to limited range of data type [-Wtype-limits]
  259 |     for (unsigned i = 0; i < BUILT_IN_MODEL_CNT; i++) {
      |                            ^
In file included from ../test/test_model.c:23:
../src/model.c: In function ‘vmaf_model_load’:
../src/model.c:99:28: warning: comparison is always false due to limited range of data type [-Wtype-limits]
   99 |     for (unsigned i = 0; i < BUILT_IN_MODEL_CNT; i++) {
      |                            ^
../src/model.c: In function ‘vmaf_model_collection_load’:
../src/model.c:259:28: warning: comparison is always false due to limited range of data type [-Wtype-limits]
  259 |     for (unsigned i = 0; i < BUILT_IN_MODEL_CNT; i++) {
      |                            ^
../test/test_cambi.c: In function ‘get_sample_image’:
../test/test_cambi.c:59:9: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]
   59 |     int err, count = 0;
      |         ^~~
../test/test_cambi.c: In function ‘get_sample_image_8b’:
../test/test_cambi.c:82:9: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]
   82 |     int err, count = 0;
      |         ^~~
../test/test_cambi.c: In function ‘get_sample_image_8x8’:
../test/test_cambi.c:94:9: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]
   94 |     int err, count = 0;
      |         ^~~
../tools/main.cpp: In function ‘int run_wrapper(char*, int, int, char*, char*, char*, char*, char*, bool, bool, bool, bool, bool, bool, bool, char*, int, int, bool)’:
../tools/main.cpp:195:23: warning: ‘int compute_vmaf(double*, char*, int, int, int (*)(float*, float*, float*, int, void*), void*, char*, char*, char*, int, int, int, int, int, int, int, char*, int, int, int)’ is deprecated [-Wdeprecated-declarations]
  195 |     ret = compute_vmaf(&score, fmt, width, height, read_frame, s, model_path, log_path, log_fmt,
      |           ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  196 |                        disable_clip, disable_avx, enable_transform, phone_model, do_psnr, do_ssim,
      |                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  197 |                        do_ms_ssim, pool_method, n_thread, n_subsample, enable_conf_interval);
      |                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/libvmaf/libvmaf.h:25,
                 from ../tools/main.cpp:30:
../include/libvmaf/compute_vmaf.h:66:5: note: declared here
   66 | int compute_vmaf(double* vmaf_score, char* fmt, int width, int height, int (*read_frame)(float *ref_data, float *main_data, float *temp_data, int stride_byte, void *user_data),
      |     ^~~~~~~~~~~~
../src/model.c
../src/model.c: In function ‘vmaf_model_load’:
../src/model.c:99:28: warning: comparison is always false due to limited range of data type [-Wtype-limits]
   99 |     for (unsigned i = 0; i < BUILT_IN_MODEL_CNT; i++) {
      |                            ^
../src/model.c: In function ‘vmaf_model_collection_load’:
../src/model.c:259:28: warning: comparison is always false due to limited range of data type [-Wtype-limits]
  259 |     for (unsigned i = 0; i < BUILT_IN_MODEL_CNT; i++) {
      |                            ^
In file included from ../src/feature/x86/motion_avx2.c:23:
../src/feature/integer_motion.h: In function ‘edge_16’:
../src/feature/integer_motion.h:37:34: warning: operand of ‘?:’ changes signedness from ‘int’ to ‘unsigned int’ due to unsignedness of other operand [-Wsign-compare]
   37 |         int i_tap = horizontal ? i : i - radius + k;
      |                                  ^
../src/feature/integer_motion.h:38:51: warning: operand of ‘?:’ changes signedness from ‘int’ to ‘unsigned int’ due to unsignedness of other operand [-Wsign-compare]
   38 |         int j_tap = horizontal ? j - radius + k : j;
      |                                                   ^
../src/feature/common/convolution_avx.c: In function ‘convolution_f32_avx_s_1d_v_scanline’:
../src/feature/common/convolution_avx.c:433:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
  433 |                                 f8 = _mm256_broadcast_ss(filter + y + 8);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:434:25: note: here
  434 |                         case 8:
      |                         ^~~~
../src/feature/common/convolution_avx.c:435:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
  435 |                                 f7 = _mm256_broadcast_ss(filter + y + 7);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:436:25: note: here
  436 |                         case 7:
      |                         ^~~~
../src/feature/common/convolution_avx.c:437:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
  437 |                                 f6 = _mm256_broadcast_ss(filter + y + 6);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:438:25: note: here
  438 |                         case 6:
      |                         ^~~~
../src/feature/common/convolution_avx.c:439:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
  439 |                                 f5 = _mm256_broadcast_ss(filter + y + 5);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:440:25: note: here
  440 |                         case 5:
      |                         ^~~~
../src/feature/common/convolution_avx.c:441:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
  441 |                                 f4 = _mm256_broadcast_ss(filter + y + 4);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:442:25: note: here
  442 |                         case 4:
      |                         ^~~~
../src/feature/common/convolution_avx.c:443:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
  443 |                                 f3 = _mm256_broadcast_ss(filter + y + 3);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:444:25: note: here
  444 |                         case 3:
      |                         ^~~~
../src/feature/common/convolution_avx.c:445:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
  445 |                                 f2 = _mm256_broadcast_ss(filter + y + 2);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:446:25: note: here
  446 |                         case 2:
      |                         ^~~~
../src/feature/common/convolution_avx.c:447:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
  447 |                                 f1 = _mm256_broadcast_ss(filter + y + 1);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:448:25: note: here
  448 |                         case 1:
      |                         ^~~~
../src/feature/common/convolution_avx.c:465:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
  465 |                                         sum0 = _mm256_mul_ps(f8, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:466:33: note: here
  466 |                                 case 8:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:468:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
  468 |                                         sum3 = _mm256_mul_ps(f7, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:469:33: note: here
  469 |                                 case 7:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:471:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
  471 |                                         sum2 = _mm256_mul_ps(f6, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:472:33: note: here
  472 |                                 case 6:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:474:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
  474 |                                         sum1 = _mm256_mul_ps(f5, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:475:33: note: here
  475 |                                 case 5:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:478:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
  478 |                                         sum0 = _mm256_add_ps(sum0, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:479:33: note: here
  479 |                                 case 4:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:482:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
  482 |                                         sum3 = _mm256_add_ps(sum3, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:483:33: note: here
  483 |                                 case 3:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:486:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
  486 |                                         sum2 = _mm256_add_ps(sum2, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:487:33: note: here
  487 |                                 case 2:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:490:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
  490 |                                         sum1 = _mm256_add_ps(sum1, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:491:33: note: here
  491 |                                 case 1:
      |                                 ^~~~
../src/feature/common/convolution_avx.c: In function ‘convolution_f32_avx_s_1d_h_scanline’:
../src/feature/common/convolution_avx.c:79:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
   79 |                                 f8 = _mm256_broadcast_ss(filter + x + 8);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:80:25: note: here
   80 |                         case 8:
      |                         ^~~~
../src/feature/common/convolution_avx.c:81:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
   81 |                                 f7 = _mm256_broadcast_ss(filter + x + 7);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:82:25: note: here
   82 |                         case 7:
      |                         ^~~~
../src/feature/common/convolution_avx.c:83:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
   83 |                                 f6 = _mm256_broadcast_ss(filter + x + 6);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:84:25: note: here
   84 |                         case 6:
      |                         ^~~~
../src/feature/common/convolution_avx.c:85:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
   85 |                                 f5 = _mm256_broadcast_ss(filter + x + 5);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:86:25: note: here
   86 |                         case 5:
      |                         ^~~~
../src/feature/common/convolution_avx.c:87:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
   87 |                                 f4 = _mm256_broadcast_ss(filter + x + 4);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:88:25: note: here
   88 |                         case 4:
      |                         ^~~~
../src/feature/common/convolution_avx.c:89:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
   89 |                                 f3 = _mm256_broadcast_ss(filter + x + 3);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:90:25: note: here
   90 |                         case 3:
      |                         ^~~~
../src/feature/common/convolution_avx.c:91:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
   91 |                                 f2 = _mm256_broadcast_ss(filter + x + 2);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:92:25: note: here
   92 |                         case 2:
      |                         ^~~~
../src/feature/common/convolution_avx.c:93:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
   93 |                                 f1 = _mm256_broadcast_ss(filter + x + 1);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:94:25: note: here
   94 |                         case 1:
      |                         ^~~~
../src/feature/common/convolution_avx.c:111:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
  111 |                                         sum0 = _mm256_mul_ps(f8, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:112:33: note: here
  112 |                                 case 8:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:114:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
  114 |                                         sum3 = _mm256_mul_ps(f7, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:115:33: note: here
  115 |                                 case 7:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:117:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
  117 |                                         sum2 = _mm256_mul_ps(f6, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:118:33: note: here
  118 |                                 case 6:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:120:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
  120 |                                         sum1 = _mm256_mul_ps(f5, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:121:33: note: here
  121 |                                 case 5:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:124:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
  124 |                                         sum0 = _mm256_add_ps(sum0, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:125:33: note: here
  125 |                                 case 4:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:128:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
  128 |                                         sum3 = _mm256_add_ps(sum3, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:129:33: note: here
  129 |                                 case 3:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:132:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
  132 |                                         sum2 = _mm256_add_ps(sum2, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:133:33: note: here
  133 |                                 case 2:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:136:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
  136 |                                         sum1 = _mm256_add_ps(sum1, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:137:33: note: here
  137 |                                 case 1:
      |                                 ^~~~
../src/feature/common/convolution_avx.c: In function ‘convolution_f32_avx_s_1d_v_sq_scanline’:
../src/feature/common/convolution_avx.c:1126:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1126 |                                 f8 = _mm256_broadcast_ss(filter + y + 8);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1127:25: note: here
 1127 |                         case 8:
      |                         ^~~~
../src/feature/common/convolution_avx.c:1128:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1128 |                                 f7 = _mm256_broadcast_ss(filter + y + 7);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1129:25: note: here
 1129 |                         case 7:
      |                         ^~~~
../src/feature/common/convolution_avx.c:1130:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1130 |                                 f6 = _mm256_broadcast_ss(filter + y + 6);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1131:25: note: here
 1131 |                         case 6:
      |                         ^~~~
../src/feature/common/convolution_avx.c:1132:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1132 |                                 f5 = _mm256_broadcast_ss(filter + y + 5);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1133:25: note: here
 1133 |                         case 5:
      |                         ^~~~
../src/feature/common/convolution_avx.c:1134:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1134 |                                 f4 = _mm256_broadcast_ss(filter + y + 4);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1135:25: note: here
 1135 |                         case 4:
      |                         ^~~~
../src/feature/common/convolution_avx.c:1136:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1136 |                                 f3 = _mm256_broadcast_ss(filter + y + 3);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1137:25: note: here
 1137 |                         case 3:
      |                         ^~~~
../src/feature/common/convolution_avx.c:1138:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1138 |                                 f2 = _mm256_broadcast_ss(filter + y + 2);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1139:25: note: here
 1139 |                         case 2:
      |                         ^~~~
../src/feature/common/convolution_avx.c:1140:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1140 |                                 f1 = _mm256_broadcast_ss(filter + y + 1);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1141:25: note: here
 1141 |                         case 1:
      |                         ^~~~
../src/feature/common/convolution_avx.c:1159:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1159 |                                         sum0 = _mm256_mul_ps(f8, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1160:33: note: here
 1160 |                                 case 8:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:1163:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1163 |                                         sum3 = _mm256_mul_ps(f7, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1164:33: note: here
 1164 |                                 case 7:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:1167:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1167 |                                         sum2 = _mm256_mul_ps(f6, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1168:33: note: here
 1168 |                                 case 6:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:1171:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1171 |                                         sum1 = _mm256_mul_ps(f5, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1172:33: note: here
 1172 |                                 case 5:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:1176:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1176 |                                         sum0 = _mm256_add_ps(sum0, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1177:33: note: here
 1177 |                                 case 4:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:1181:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1181 |                                         sum3 = _mm256_add_ps(sum3, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1182:33: note: here
 1182 |                                 case 3:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:1186:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1186 |                                         sum2 = _mm256_add_ps(sum2, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1187:33: note: here
 1187 |                                 case 2:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:1191:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1191 |                                         sum1 = _mm256_add_ps(sum1, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1192:33: note: here
 1192 |                                 case 1:
      |                                 ^~~~
../src/feature/common/convolution_avx.c: In function ‘convolution_f32_avx_s_1d_v_xy_scanline’:
../src/feature/common/convolution_avx.c:1891:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1891 |                                 f8 = _mm256_broadcast_ss(filter + y + 8);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1892:25: note: here
 1892 |                         case 8:
      |                         ^~~~
../src/feature/common/convolution_avx.c:1893:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1893 |                                 f7 = _mm256_broadcast_ss(filter + y + 7);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1894:25: note: here
 1894 |                         case 7:
      |                         ^~~~
../src/feature/common/convolution_avx.c:1895:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1895 |                                 f6 = _mm256_broadcast_ss(filter + y + 6);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1896:25: note: here
 1896 |                         case 6:
      |                         ^~~~
../src/feature/common/convolution_avx.c:1897:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1897 |                                 f5 = _mm256_broadcast_ss(filter + y + 5);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1898:25: note: here
 1898 |                         case 5:
      |                         ^~~~
../src/feature/common/convolution_avx.c:1899:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1899 |                                 f4 = _mm256_broadcast_ss(filter + y + 4);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1900:25: note: here
 1900 |                         case 4:
      |                         ^~~~
../src/feature/common/convolution_avx.c:1901:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1901 |                                 f3 = _mm256_broadcast_ss(filter + y + 3);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1902:25: note: here
 1902 |                         case 3:
      |                         ^~~~
../src/feature/common/convolution_avx.c:1903:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1903 |                                 f2 = _mm256_broadcast_ss(filter + y + 2);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1904:25: note: here
 1904 |                         case 2:
      |                         ^~~~
../src/feature/common/convolution_avx.c:1905:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1905 |                                 f1 = _mm256_broadcast_ss(filter + y + 1);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1906:25: note: here
 1906 |                         case 1:
      |                         ^~~~
../src/feature/common/convolution_avx.c:1925:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1925 |                                         sum0 = _mm256_mul_ps(f8, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1926:33: note: here
 1926 |                                 case 8:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:1930:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1930 |                                         sum3 = _mm256_mul_ps(f7, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1931:33: note: here
 1931 |                                 case 7:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:1935:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1935 |                                         sum2 = _mm256_mul_ps(f6, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1936:33: note: here
 1936 |                                 case 6:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:1940:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1940 |                                         sum1 = _mm256_mul_ps(f5, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1941:33: note: here
 1941 |                                 case 5:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:1946:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1946 |                                         sum0 = _mm256_add_ps(sum0, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1947:33: note: here
 1947 |                                 case 4:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:1952:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1952 |                                         sum3 = _mm256_add_ps(sum3, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1953:33: note: here
 1953 |                                 case 3:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:1958:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1958 |                                         sum2 = _mm256_add_ps(sum2, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1959:33: note: here
 1959 |                                 case 2:
      |                                 ^~~~
../src/feature/common/convolution_avx.c:1964:48: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1964 |                                         sum1 = _mm256_add_ps(sum1, g);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~
../src/feature/common/convolution_avx.c:1965:33: note: here
 1965 |                                 case 1:
      |                                 ^~~~
../src/feature/x86/vif_avx2.c: In function ‘vif_filter1d_8_avx2’:
../src/feature/x86/vif_avx2.c:77: warning: ignoring ‘#pragma loop ’ [-Wunknown-pragmas]
   77 | #pragma loop(ivdep)
      |
../src/feature/x86/vif_avx2.c:100:77: warning: unused variable ‘sg8’ [-Wunused-variable]
  100 |                 s25, s26, s27, s28, sg0, sg1, sg2, sg3, sg4, sg5, sg6, sg7, sg8;
      |                                                                             ^~~
../src/feature/x86/vif_avx2.c:100:32: warning: unused variable ‘s28’ [-Wunused-variable]
  100 |                 s25, s26, s27, s28, sg0, sg1, sg2, sg3, sg4, sg5, sg6, sg7, sg8;
      |                                ^~~
../src/feature/x86/vif_avx2.c:99:53: warning: unused variable ‘s8’ [-Wunused-variable]
   99 |             __m256i s0, s1, s2, s3, s4, s5, s6, s7, s8, s20, s21, s22, s23, s24,
      |                                                     ^~
../src/feature/x86/vif_avx2.c:98:32: warning: unused variable ‘g28’ [-Wunused-variable]
   98 |                 g25, g26, g27, g28;
      |                                ^~~
../src/feature/x86/vif_avx2.c:97:53: warning: unused variable ‘g8’ [-Wunused-variable]
   97 |             __m256i g0, g1, g2, g3, g4, g5, g6, g7, g8, g20, g21, g22, g23, g24,
      |                                                     ^~
../src/feature/x86/vif_avx2.c:83:21: warning: variable ‘accum_ref_lo’ set but not used [-Wunused-but-set-variable]
   83 |             __m256i accum_ref_lo, accum_ref_hi, accum_dis_lo, accum_dis_hi,
      |                     ^~~~~~~~~~~~
../src/feature/x86/vif_avx2.c:710:21: warning: variable ‘refdislo’ set but not used [-Wunused-but-set-variable]
  710 |             __m256i refdislo, refdishi, mu2lo, mu2hi, mu1lo, mu1hi;
      |                     ^~~~~~~~
../src/feature/x86/vif_avx2.c:1108:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1108 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref + jj_check))); // 4
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
In file included from /usr/lib/gcc/x86_64-redhat-linux/12/include/xmmintrin.h:1316,
                 from /usr/lib/gcc/x86_64-redhat-linux/12/include/immintrin.h:31,
                 from ../src/feature/x86/vif_avx2.c:20:
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1110:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1110 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref + jj_check + 1))); // 8
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1112:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1112 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref + jj_check + 2))); // 4
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1114:17: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1114 |                 (__m128 *)(buf.tmp.ref + jj_check + 3))); // 8  //12
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 |
      |                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1121:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1121 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref + jj_check + 4)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1123:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1123 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref + jj_check + 5)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1125:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1125 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref + jj_check + 6)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1127:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1127 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref + jj_check + 7)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1139:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1139 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref + jj_check + 8)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1141:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1141 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref + jj_check + 9)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1143:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1143 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref + jj_check + 10)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1145:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1145 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref + jj_check + 11)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1157:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1157 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref + jj_check + 12)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1159:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1159 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref + jj_check + 13)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1161:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1161 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref + jj_check + 14)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1163:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1163 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref + jj_check + 15)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1175:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1175 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref + jj_check + 16)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1177:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1177 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref + jj_check + 17)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1179:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1179 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref + jj_check + 18)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1181:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1181 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref + jj_check + 19)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1190:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1190 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref + jj_check + 20)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1194:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1194 |                 _mm_loadu_si128((__m128 *)(buf.tmp.dis + jj_check)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1196:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1196 |                 _mm_loadu_si128((__m128 *)(buf.tmp.dis + jj_check + 1)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1198:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1198 |                 _mm_loadu_si128((__m128 *)(buf.tmp.dis + jj_check + 2)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1200:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1200 |                 _mm_loadu_si128((__m128 *)(buf.tmp.dis + jj_check + 3)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1207:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1207 |                 _mm_loadu_si128((__m128 *)(buf.tmp.dis + jj_check + 4)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1209:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1209 |                 _mm_loadu_si128((__m128 *)(buf.tmp.dis + jj_check + 5)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1211:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1211 |                 _mm_loadu_si128((__m128 *)(buf.tmp.dis + jj_check + 6)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1213:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1213 |                 _mm_loadu_si128((__m128 *)(buf.tmp.dis + jj_check + 7)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1225:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1225 |                 _mm_loadu_si128((__m128 *)(buf.tmp.dis + jj_check + 8)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1227:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1227 |                 _mm_loadu_si128((__m128 *)(buf.tmp.dis + jj_check + 9)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1229:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1229 |                 _mm_loadu_si128((__m128 *)(buf.tmp.dis + jj_check + 10)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1231:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1231 |                 _mm_loadu_si128((__m128 *)(buf.tmp.dis + jj_check + 11)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1243:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1243 |                 _mm_loadu_si128((__m128 *)(buf.tmp.dis + jj_check + 12)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1245:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1245 |                 _mm_loadu_si128((__m128 *)(buf.tmp.dis + jj_check + 13)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1247:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1247 |                 _mm_loadu_si128((__m128 *)(buf.tmp.dis + jj_check + 14)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1249:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1249 |                 _mm_loadu_si128((__m128 *)(buf.tmp.dis + jj_check + 15)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1261:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1261 |                 _mm_loadu_si128((__m128 *)(buf.tmp.dis + jj_check + 16)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1263:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1263 |                 _mm_loadu_si128((__m128 *)(buf.tmp.dis + jj_check + 17)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1265:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1265 |                 _mm_loadu_si128((__m128 *)(buf.tmp.dis + jj_check + 18)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1267:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1267 |                 _mm_loadu_si128((__m128 *)(buf.tmp.dis + jj_check + 19)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1275:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1275 |                 _mm_loadu_si128((__m128 *)(buf.tmp.dis + jj_check + 20)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1279:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1279 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref_dis + jj_check)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1281:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1281 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref_dis + jj_check + 1)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1283:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1283 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref_dis + jj_check + 2)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1285:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1285 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref_dis + jj_check + 3)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1292:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1292 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref_dis + jj_check + 4)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1294:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1294 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref_dis + jj_check + 5)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1296:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1296 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref_dis + jj_check + 6)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1298:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1298 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref_dis + jj_check + 7)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1310:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1310 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref_dis + jj_check + 8)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1312:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1312 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref_dis + jj_check + 9)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1314:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1314 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref_dis + jj_check + 10)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1316:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1316 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref_dis + jj_check + 11)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1328:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1328 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref_dis + jj_check + 12)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1330:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1330 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref_dis + jj_check + 13)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1332:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1332 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref_dis + jj_check + 14)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1334:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1334 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref_dis + jj_check + 15)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1347:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1347 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref_dis + jj_check + 16)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1349:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1349 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref_dis + jj_check + 17)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1351:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1351 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref_dis + jj_check + 18)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1353:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1353 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref_dis + jj_check + 19)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1362:33: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1362 |                 _mm_loadu_si128((__m128 *)(buf.tmp.ref_dis + jj_check + 20)));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 |
      |                                 __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:36:13: warning: unused variable ‘f0’ [-Wunused-variable]
   36 |     __m256i f0, f1, f2, f3, f4, f5, f6, f7, f8, f9, fc0, fc1, fc2, fc3, fc4,
      |             ^~
../src/feature/x86/vif_avx2.c:29:20: warning: unused variable ‘fwidth_v’ [-Wunused-variable]
   29 |     const unsigned fwidth_v = 18;
      |                    ^~~~~~~~
../src/feature/x86/vif_avx2.c: In function ‘vif_filter1d_16_avx2’:
../src/feature/x86/vif_avx2.c:1427:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1427 |         for (unsigned j = 0; j < n << 4; j = j + 16) {
      |                                ^
../src/feature/x86/vif_avx2.c:1452:32: warning: unused variable ‘fcoeff’ [-Wunused-variable]
 1452 |                 const uint16_t fcoeff = vif_filt[fi];
      |                                ^~~~~~
../src/feature/x86/vif_avx2.c:1433:21: warning: unused variable ‘mask1’ [-Wunused-variable]
 1433 |             __m256i mask1 = _mm256_set_epi8(15, 14, 11, 10, 7, 6, 3, 2, 13, 12,
      |                     ^~~~~
../src/feature/x86/vif_avx2.c:1432:22: warning: unused variable ‘accum_ref_dis’ [-Wunused-variable]
 1432 |             uint64_t accum_ref_dis = 0;
      |                      ^~~~~~~~~~~~~
../src/feature/x86/vif_avx2.c:1431:22: warning: unused variable ‘accum_dis’ [-Wunused-variable]
 1431 |             uint64_t accum_dis = 0;
      |                      ^~~~~~~~~
../src/feature/x86/vif_avx2.c:1430:22: warning: unused variable ‘accum_ref’ [-Wunused-variable]
 1430 |             uint64_t accum_ref = 0;
      |                      ^~~~~~~~~
../src/feature/x86/vif_avx2.c:1429:22: warning: unused variable ‘accum_mu2’ [-Wunused-variable]
 1429 |             uint32_t accum_mu2 = 0;
      |                      ^~~~~~~~~
../src/feature/x86/vif_avx2.c:1428:22: warning: unused variable ‘accum_mu1’ [-Wunused-variable]
 1428 |             uint32_t accum_mu1 = 0;
      |                      ^~~~~~~~~
../src/feature/x86/vif_avx2.c:1656:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1656 |         for (unsigned j = 0; j < n << 3; j = j + 8) {
      |                                ^
../src/feature/x86/vif_avx2.c:1661: warning: ignoring ‘#pragma unroll ’ [-Wunknown-pragmas]
 1661 | #pragma unroll(4)
      |
../src/feature/x86/vif_avx2.c:1659:21: warning: unused variable ‘accumdl’ [-Wunused-variable]
 1659 |             __m256i accumdl, accumrlo, accumdlo, accumrhi, accumdhi;
      |                     ^~~~~~~
../src/feature/x86/vif_avx2.c:1696:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1696 |         for (unsigned j = 0; j < n << 3; j = j + 8) {
      |                                ^
../src/feature/x86/vif_avx2.c:1709: warning: ignoring ‘#pragma unroll ’ [-Wunknown-pragmas]
 1709 | #pragma unroll(2)
      |
../src/feature/x86/vif_avx2.c:1710:51: warning: operation on ‘fj’ may be undefined [-Wsequence-point]
 1710 |             for (unsigned fj = 0; fj < fwidth; fj = ++fj, jj_check = jj + fj) {
      |                                                ~~~^~~~~~
../src/feature/x86/vif_avx2.c:1713:37: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1713 |                     _mm_loadu_si128((__m128 *)(buf.tmp.ref + jj_check)));
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                     |
      |                                     __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1716:37: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1716 |                     _mm_loadu_si128((__m128 *)(buf.tmp.ref + jj_check + 4)));
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                     |
      |                                     __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1720:37: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1720 |                     _mm_loadu_si128((__m128 *)(buf.tmp.dis + jj_check)));
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                     |
      |                                     __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1723:37: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1723 |                     _mm_loadu_si128((__m128 *)(buf.tmp.dis + jj_check + 4)));
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                     |
      |                                     __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1727:37: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1727 |                     _mm_loadu_si128((__m128 *)(buf.tmp.ref_dis + jj_check)));
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                     |
      |                                     __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1731:21: warning: passing argument 1 of ‘_mm_loadu_si128’ from incompatible pointer type [-Wincompatible-pointer-types]
 1731 |                     (__m128 *)(buf.tmp.ref_dis + jj_check + 4)));
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                     |
      |                     __m128 *
/usr/lib/gcc/x86_64-redhat-linux/12/include/emmintrin.h:701:35: note: expected ‘const __m128i_u *’ but argument is of type ‘__m128 *’
  701 | _mm_loadu_si128 (__m128i_u const *__P)
      |                  ~~~~~~~~~~~~~~~~~^~~
../src/feature/x86/vif_avx2.c:1701:22: warning: unused variable ‘accum_ref_dis’ [-Wunused-variable]
 1701 |             uint64_t accum_ref_dis = 0;
      |                      ^~~~~~~~~~~~~
../src/feature/x86/vif_avx2.c:1700:22: warning: unused variable ‘accum_dis’ [-Wunused-variable]
 1700 |             uint64_t accum_dis = 0;
      |                      ^~~~~~~~~
../src/feature/x86/vif_avx2.c:1699:22: warning: unused variable ‘accum_ref’ [-Wunused-variable]
 1699 |             uint64_t accum_ref = 0;
      |                      ^~~~~~~~~
../src/feature/x86/vif_avx2.c:1698:22: warning: unused variable ‘accum_mu2’ [-Wunused-variable]
 1698 |             uint32_t accum_mu2 = 0;
      |                      ^~~~~~~~~
../src/feature/x86/vif_avx2.c:1697:22: warning: unused variable ‘accum_mu1’ [-Wunused-variable]
 1697 |             uint32_t accum_mu1 = 0;
      |                      ^~~~~~~~~
../src/feature/x86/vif_avx2.c: In function ‘vif_filter1d_rd_8_avx2’:
../src/feature/x86/vif_avx2.c:1850:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 1850 |         for (unsigned j = 0; j < n << 4; j = j + 16) {
      |                                ^
../src/feature/x86/vif_avx2.c:1857:76: warning: unused variable ‘sg1’ [-Wunused-variable]
 1857 |             __m256i s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s20, s21, sg0, sg1;
      |                                                                            ^~~
../src/feature/x86/vif_avx2.c:1857:71: warning: unused variable ‘sg0’ [-Wunused-variable]
 1857 |             __m256i s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s20, s21, sg0, sg1;
      |                                                                       ^~~
../src/feature/x86/vif_avx2.c:1857:66: warning: unused variable ‘s21’ [-Wunused-variable]
 1857 |             __m256i s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s20, s21, sg0, sg1;
      |                                                                  ^~~
../src/feature/x86/vif_avx2.c:1857:61: warning: unused variable ‘s20’ [-Wunused-variable]
 1857 |             __m256i s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s20, s21, sg0, sg1;
      |                                                             ^~~
../src/feature/x86/vif_avx2.c:1856:66: warning: unused variable ‘g21’ [-Wunused-variable]
 1856 |             __m256i g0, g1, g2, g3, g4, g5, g6, g7, g8, g9, g20, g21;
      |                                                                  ^~~
../src/feature/x86/vif_avx2.c:1856:61: warning: unused variable ‘g20’ [-Wunused-variable]
 1856 |             __m256i g0, g1, g2, g3, g4, g5, g6, g7, g8, g9, g20, g21;
      |                                                             ^~~
../src/feature/x86/vif_avx2.c:2004:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2004 |         for (unsigned j = 0; j < n << 3; j = j + 8) {
      |                                ^
../src/feature/x86/vif_avx2.c:2007:21: warning: unused variable ‘accumdl’ [-Wunused-variable]
 2007 |             __m256i accumdl, accumrlo, accumdlo, accumrhi, accumdhi;
      |                     ^~~~~~~
../src/feature/x86/vif_avx2.c:1805:45: warning: unused variable ‘f8’ [-Wunused-variable]
 1805 |     __m256i f0, f1, f2, f3, f4, f5, f6, f7, f8;
      |                                             ^~
../src/feature/x86/vif_avx2.c:1805:41: warning: unused variable ‘f7’ [-Wunused-variable]
 1805 |     __m256i f0, f1, f2, f3, f4, f5, f6, f7, f8;
      |                                         ^~
../src/feature/x86/vif_avx2.c:1805:37: warning: unused variable ‘f6’ [-Wunused-variable]
 1805 |     __m256i f0, f1, f2, f3, f4, f5, f6, f7, f8;
      |                                     ^~
../src/feature/x86/vif_avx2.c:1805:33: warning: unused variable ‘f5’ [-Wunused-variable]
 1805 |     __m256i f0, f1, f2, f3, f4, f5, f6, f7, f8;
      |                                 ^~
../src/feature/x86/vif_avx2.c:1796:9: warning: unused variable ‘fwidth_x’ [-Wunused-variable]
 1796 |     int fwidth_x = (fwidth % 2 == 0) ? fwidth : fwidth + 1;
      |         ^~~~~~~~
../src/feature/x86/vif_avx2.c: In function ‘vif_filter1d_rd_16_avx2’:
../src/feature/x86/vif_avx2.c:2221:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2221 |         for (unsigned j = 0; j < n << 4; j = j + 16) {
      |                                ^
../src/feature/x86/vif_avx2.c:2228:32: warning: unused variable ‘fcoeff’ [-Wunused-variable]
 2228 |                 const uint16_t fcoeff = vif_filt[fi];
      |                                ^~~~~~
../src/feature/x86/vif_avx2.c:2295:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
 2295 |         for (unsigned j = 0; j < n << 3; j = j + 8) {
      |                                ^
../src/feature/x86/vif_avx2.c:2301:29: warning: unused variable ‘dis’ [-Wunused-variable]
 2301 |             const uint16_t *dis = (uint16_t *)buf.dis;
      |                             ^~~
../src/feature/x86/vif_avx2.c:2300:29: warning: unused variable ‘ref’ [-Wunused-variable]
 2300 |             const uint16_t *ref = (uint16_t *)buf.tmp.ref_convol;
      |                             ^~~
../src/feature/x86/vif_avx2.c:2298:21: warning: unused variable ‘accumdl’ [-Wunused-variable]
 2298 |             __m256i accumdl, accumrlo, accumdlo, accumrhi, accumdhi;
      |                     ^~~~~~~
../src/feature/x86/vif_avx2.c:2205:13: warning: unused variable ‘mask2’ [-Wunused-variable]
 2205 |     __m256i mask2 = _mm256_set_epi32(7, 5, 3, 1, 6, 4, 2, 0);
      |             ^~~~~
kylophone commented 2 years ago

Yes, we are working our way down to 0. Unfortunately there is a lot of legacy stuff in here, #996 will help with many of these warnings. Goal is to address all the warnings for the next libvmaf release.