Skip to content

-Wimplicit-int warnings in C code #10

@jzern

Description

@jzern

@ 5f8911c

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions