platform_system_bpf/libbpf_android
Maciej Żenczykowski 54a7e769ae BpfMap.h - fix cert-oop54-cpp compiler warning
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
2020-04-24 08:15:00 -07:00
..
include BpfMap.h - fix cert-oop54-cpp compiler warning 2020-04-24 08:15:00 -07:00
Android.bp libbpf_android: remove libnetdutils dep 2020-01-21 10:47:33 -08:00
BpfLoadTest.cpp More missing calls to Result::ok() in libbpf_android tests 2020-02-10 07:28:13 +09:00
BpfMapTest.cpp More missing calls to Result::ok() in libbpf_android tests 2020-02-10 07:28:13 +09:00
BpfUtils.cpp change to ro.kernel.ebpf.supported property 2020-04-23 18:36:56 -07:00
Loader.cpp libbpf_android/Loader.cpp - fixes performance-inefficient-string-concatenation warning 2020-04-24 04:18:35 +00:00
LoaderUtils.h add support for marking ebpf programs as being only for some kernel versions 2020-02-19 15:46:23 -08:00
TEST_MAPPING TEST_MAPPING += libbpf_android_test 2020-01-15 08:28:44 +00:00