Skip to content

warning: 'memset' call operates on objects of type 'outsamplestruct' … while the size is based on a different type 'outsamplestruct *' #18

@ryandesign

Description

@ryandesign

This warning appears when building 3.24.2:

catout.c:215:33: warning: 'memset' call operates on objects of type 'outsamplestruct' (aka 'struct outsample') while the size is based on a different type 'outsamplestruct *' (aka 'struct outsample *') [-Wsizeof-pointer-memaccess]
    memset(outsample, 0, sizeof(outsample));
           ~~~~~~~~~            ^~~~~~~~~
catout.c:215:33: note: did you mean to dereference the argument to 'sizeof' (and multiply it by the number of elements)?
    memset(outsample, 0, sizeof(outsample));
                                ^~~~~~~~~
1 warning generated.

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