[syslinux] [syslinux:syslinux-4.xx] acpi: Removing memset of buffer

Celelibi celelibi at gmail.com
Sat Feb 1 08:31:42 PST 2014


2014-02-01, syslinux-bot for Erwan Velu <erwan at enovance.com>:
> Removing this memset call will make things clearer but also will prevent
> compilation warnings like :
>
> com32/gpllib/acpi/acpi.c:38:29: warning: argument to ‘sizeof’ in ‘memset’
> call is the same expression as the
> destination; did you mean to provide an explicit length?
> [-Wsizeof-pointer-memaccess]
>      memset(buffer, 0, sizeof(buffer));

Talking about this: there are several of those warnings when compiling
with gcc 4.8. They are potential bugs.


Celelibi



More information about the Syslinux mailing list