psfex icon indicating copy to clipboard operation
psfex copied to clipboard

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

Open ryandesign opened this issue 1 year ago • 0 comments

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.

ryandesign avatar Jan 02 '24 07:01 ryandesign