54a7e769ae
Fixes: system/bpf/libbpf_android/include/bpf/BpfMap.h:132:10: warning: operator=() does not handle self-assignment properly [cert-oop54-cpp] void operator=(const BpfMap<Key, Value>& other) { ^ Matches the self-assignment check from https://clang.llvm.org/extra/clang-tidy/checks/bugprone-unhandled-self-assignment.html This isn't needed here, since the code was already correct, but it does prevent a pointless newfd = dup(fd); close(fd); sequence. Test: builds Bug: 153035880 Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: Ia57f95d4ab180783c97db7e6f8d929f822c8958d |
||
---|---|---|
.. | ||
include | ||
Android.bp | ||
BpfLoadTest.cpp | ||
BpfMapTest.cpp | ||
BpfUtils.cpp | ||
Loader.cpp | ||
LoaderUtils.h | ||
TEST_MAPPING |