]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libc/tests/stdlib/dynthr_mod/dynthr_mod.c: mark dummy as used
authorKonstantin Belousov <kib@FreeBSD.org>
Sun, 28 Nov 2021 03:25:28 +0000 (05:25 +0200)
committerKonstantin Belousov <kib@FreeBSD.org>
Mon, 29 Nov 2021 15:39:51 +0000 (17:39 +0200)
commita64a3b798825bc176ae052fc3ead88566b60ba7d
treefbe7ee251b5e137d150847f21f8c8364d7dd114b
parente8b6309c70f0d751e626f8babbad68a16a95577c
libc/tests/stdlib/dynthr_mod/dynthr_mod.c: mark dummy as used

It receives the malloc() result, and we do not want the malloc() call
to be optimized out, which is allowed for hosted compiler.  Use dummy
for actual write though.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
lib/libc/tests/stdlib/dynthr_mod/dynthr_mod.c