Skip the bpf native tests on old devices
For older devices that doesn't have bpf support, skip the bpf native
tests so we don't get false alarms. Fixed some compiler warning and
added the clang-format check.
Test: ./libnetdbpf_test/libnetdbpf_test
Bug: 119526856
Change-Id: Icb73a8ee9b9dff9a0da28b96578e1245f1f3724f
diff --git a/Android.bp b/Android.bp
index deaf71e..7d635d1 100644
--- a/Android.bp
+++ b/Android.bp
@@ -13,6 +13,8 @@
"android-*",
"cert-*",
"clang-analyzer-security*",
+ "-cert-err34-c",
+ "clang-analyzer-security*",
// Disabling due to many unavoidable warnings from POSIX API usage.
"-google-runtime-int",
],