| commit | 97db8fafee16767e9980508e2903858a35577d38 | [log] [tgz] |
|---|---|---|
| author | Sharjeel Khan <sharjeelkhan@google.com> | Mon Jul 28 18:25:11 2025 +0000 |
| committer | Sharjeel Khan <sharjeelkhan@google.com> | Fri Aug 01 18:24:45 2025 +0000 |
| tree | c2f1fae5c1d6e3c1de3f6cf5ec05eb85473af7d9 | |
| parent | 6b9c94cc8bb2ba2f862811cec9763032cc9b3392 [diff] |
Fix -Wnontrivial-memcall warning
Memcall functions work at the byte level so they don't know about C++
semantics and these C++ objects might not have trivial
constructors or destructors. I replaced it with an assignment because
clang will compile to a memcpy but avoid the warning. This is a better
solution because type information is maintained and the compiler might
want to warn about other things if the class has changes in the future.
build/make/tools/zipalign/ZipEntry.cpp:150:12: error: first argument in
call to 'memcpy' is a pointer to non-trivially copyable type
'CentralDirEntry' [-Werror,-Wnontrivial-memcall]
150 | memcpy(&mCDE, &pEntry->mCDE, sizeof(mCDE));
| ^
Bug: 430598176
Test: m & presubmits
Change-Id: Ibac2abf7cd0dd0dd0866df2778d27ce3c44e857d
This is the Makefile-based portion of the Android Build System.
For documentation on how to run a build, see Usage.txt
For a list of behavioral changes useful for Android.mk writers see Changes.md
For an outdated reference on Android.mk files, see build-system.html. Our Android.mk files look similar, but are entirely different from the Android.mk files used by the NDK build system. When searching for documentation elsewhere, ensure that it is for the platform build system -- most are not.
This Makefile-based system is in the process of being replaced with Soong, a new build system written in Go. During the transition, all of these makefiles are read by Kati, and generate a ninja file instead of being executed directly. That's combined with a ninja file read by Soong so that the build graph of the two systems can be combined and run as one.