d4863a5ca0
When running coreboot unit tests on a recent clang version, it helpfully throws an error on memset(..., 0xAA, 0) because it thinks you probably made a typo and meant to write memset(..., 0, 0xAA) instead. I mean, who would ever memset() a buffer of zero bytes, right? Unfortunately, unit tests for memset() want to do exactly that. Wrapping the argument in parenthesis silences the warning. Signed-off-by: Julius Werner <jwerner@chromium.org> Change-Id: I21aeb5ec4d6ce74d5df2d21e2f9084b17b3ac6e3 Reviewed-on: https://review.coreboot.org/c/coreboot/+/51617 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jakub Czapiga <jacz@semihalf.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> |
||
---|---|---|
.. | ||
b64_decode-test.c | ||
cbmem_console-test.c | ||
compute_ip_checksum-test.c | ||
crc_byte-test.c | ||
edid-test.c | ||
fmap-test.c | ||
hexstrtobin-test.c | ||
imd-test.c | ||
imd_cbmem-test.c | ||
list-test.c | ||
Makefile.inc | ||
malloc-test.c | ||
memchr-test.c | ||
memcmp-test.c | ||
memcpy-test.c | ||
memmove-test.c | ||
memrange-test.c | ||
memset-test.c | ||
region_file-test.c | ||
stack-test.c | ||
string-test.c | ||
timestamp-test.c |