Re: [U-Boot] [PATCH] cmd/gpt.c: Fix warning over memset args in allocate_disk_part

2017-09-16 Thread Alison Chaiken
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

[U-Boot] [PATCH] cmd/gpt.c: Fix warning over memset args in allocate_disk_part

2017-09-15 Thread Tom Rini
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)); ~~~