diff options
| author | Alex Richardson <arichardson@FreeBSD.org> | 2025-09-15 22:14:18 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2025-12-15 15:02:09 +0000 |
| commit | ca149d75e9bd6455abc3c74e7db160464cfabbdb (patch) | |
| tree | 3d618c1a182a475e4cddc244747adb7b58232913 /stand/lua/cli.lua | |
| parent | 703c98dc6eeb2b36ec94e138269a221704e55f4c (diff) | |
libc++: silence -Wnontrivial-memaccess warning with newer clang
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.
Reviewed by: emaste, dim
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D52534
(cherry picked from commit 34a006eaa39ceb6b0a96fa386c9b9b8a44681979)
Diffstat (limited to 'stand/lua/cli.lua')
0 files changed, 0 insertions, 0 deletions
