On Fri, Sep 15, 2017 at 5:02 AM, Tom Rini wrote:
> With clang-3.8 we see:
> cmd/gpt.c:196:31: warning: 'memset' call operates on objects
> of type 'struct disk_part' while the size is based on a different
> type
> 'struct disk_part *' [-Wsizeof-pointer-memaccess]
> memset(newp
With clang-3.8 we see:
cmd/gpt.c:196:31: warning: 'memset' call operates on objects
of type 'struct disk_part' while the size is based on a different type
'struct disk_part *' [-Wsizeof-pointer-memaccess]
memset(newpart, '\0', sizeof(newpart));
~~~
2 matches
Mail list logo