coreboot-kgpe-d16/tests/lib
Julius Werner d4863a5ca0 tests: memset-test: Parenthesize zero size argument for clang
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>
2021-03-18 15:02:13 +00:00
..
Makefile.inc tests: Add lib/memrange-test test case 2021-03-15 06:10:24 +00:00
b64_decode-test.c
cbmem_console-test.c
compute_ip_checksum-test.c tests: Add lib/compute_ip_checksum-test test case 2021-03-02 17:04:44 +00:00
crc_byte-test.c tests: Add lib/crc_byte-test test case 2021-03-02 17:04:28 +00:00
edid-test.c
fmap-test.c
hexstrtobin-test.c
imd-test.c
imd_cbmem-test.c tests: Add lib/imd_cbmem-test test case 2021-01-18 07:27:16 +00:00
list-test.c
malloc-test.c tests: Add lib/malloc-test test case 2021-02-26 07:29:57 +00:00
memchr-test.c tests/lib/memchr-test: Fix possible memory overrun, add non-null checks 2021-02-26 07:30:00 +00:00
memcmp-test.c tests: Add lib/memcmp-test test case 2021-02-18 19:12:46 +00:00
memcpy-test.c tests: Add lib/memcpy-test test case 2021-02-23 17:12:52 +00:00
memmove-test.c tests: Add lib/memmove-test test case 2021-03-01 08:31:11 +00:00
memrange-test.c tests: Add lib/memrange-test test case 2021-03-15 06:10:24 +00:00
memset-test.c tests: memset-test: Parenthesize zero size argument for clang 2021-03-18 15:02:13 +00:00
region_file-test.c tests: Add lib/region_file-test test case 2021-02-02 18:05:26 +00:00
stack-test.c tests: Add lib/stack-test test case 2021-02-12 07:48:24 +00:00
string-test.c
timestamp-test.c