Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ryandesign opened this issue Jan 2, 2024 · 0 comments

Comments

@ryandesign
Copy link

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant