Page MenuHomeFreeBSD

libc++: silence -Wnontrivial-memaccess warning with newer clang
ClosedPublic

Authored by arichardson on Sep 14 2025, 11:10 PM.
Tags
None
Referenced Files
F141128785: D52534.id162120.diff
Thu, Jan 1, 6:04 AM
Unknown Object (File)
Tue, Dec 30, 6:15 AM
Unknown Object (File)
Sun, Dec 21, 2:38 PM
Unknown Object (File)
Sun, Dec 14, 1:41 PM
Unknown Object (File)
Nov 29 2025, 9:26 AM
Unknown Object (File)
Nov 28 2025, 7:05 AM
Unknown Object (File)
Nov 24 2025, 2:16 PM
Unknown Object (File)
Nov 15 2025, 6:42 AM
Subscribers

Details

Summary

Apply part of LLVM commit 71315698c91d0cda054b903da0594ca6f072c350 to
silence the -Wnontrivial-memaccess warning that is triggered any time
this function is instantiated by user code. This fixes another
buildworld failure with Clang HEAD.

Original commit message:
[clang] Warn about memset/memcpy to NonTriviallyCopyable types (#111434)
This implements a warning that's similar to what GCC does in that
context: both memcpy and memset require their first and second operand
to be trivially copyable, let's warn if that's not the case.

Diff Detail

Repository
rG FreeBSD src repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 67026
Build 63909: arc lint + arc unit