Samsung / iac

This project relates to the pre-processing and/or post-processing of the decoded audio samples to produce an immersive 3D rendering, and is independent of the audio codec used.
BSD 3-Clause Clear License
6 stars 4 forks source link

-Wimplicit-int warnings in C code #10

Open jzern opened 1 year ago

jzern commented 1 year ago

@ 5f8911cab86df546cc18bceccd817f44482b027f

For example compiling with gcc 12.2.0:

iac/src/iamf_enc/dmpd/asc/src/kernels/strided_slice.c:217:15: warning: type defaults to ‘int’ in declaration of ‘strides’ [-Wimplicit-int]
  217 |   const auto* strides = params->strides;
      |               ^~~~~~~

The auto keyword in C is different from auto in C++11. Automatic storage duration is the default at block scope, this should be removed and the correct types used.

jzern commented 1 year ago

Many of these warnings are still present @ f48a9398c41ee9ccfa0c5e5a1c36b0b2471c40f5.