Robin Lee | 4fd4d39 | 2017-03-14 14:03:05 +0000 | [diff] [blame] | 1 | cc_library_headers { |
| 2 | name: "libnetd_client_headers", |
| 3 | export_include_dirs: ["include"], |
| 4 | } |
| 5 | |
Bernie Innocenti | 0c53274 | 2018-06-11 14:12:08 +0900 | [diff] [blame] | 6 | cc_defaults { |
| 7 | name: "netd_defaults", |
Bernie Innocenti | 9895179 | 2018-06-26 17:13:44 +0900 | [diff] [blame] | 8 | cflags: [ |
| 9 | "-Wall", |
| 10 | "-Werror", |
Bernie Innocenti | 11cd020 | 2018-10-12 21:27:45 +0900 | [diff] [blame] | 11 | // Override -Wno-error=implicit-fallthrough from soong |
| 12 | "-Werror=implicit-fallthrough", |
Bernie Innocenti | 9895179 | 2018-06-26 17:13:44 +0900 | [diff] [blame] | 13 | "-Wnullable-to-nonnull-conversion", |
Bernie Innocenti | 45238a1 | 2018-12-04 14:57:48 +0900 | [diff] [blame] | 14 | "-Wsign-compare", |
Bernie Innocenti | 9895179 | 2018-06-26 17:13:44 +0900 | [diff] [blame] | 15 | "-Wthread-safety", |
| 16 | "-Wunused-parameter", |
| 17 | ], |
Bernie Innocenti | 0c53274 | 2018-06-11 14:12:08 +0900 | [diff] [blame] | 18 | tidy: true, |
| 19 | tidy_checks: [ |
| 20 | "android-*", |
| 21 | "cert-*", |
Bernie Innocenti | 9895179 | 2018-06-26 17:13:44 +0900 | [diff] [blame] | 22 | // Disabling cert-err34-c for now because it complains about each use |
| 23 | // of atoi() and sscanf() in protocol parsers. |
| 24 | // TODO: re-aneble cert-err34-c once we move to Binder. |
Bernie Innocenti | 2a008c5 | 2018-10-12 22:30:22 +0900 | [diff] [blame] | 25 | "-cert-err34-c", |
| 26 | "clang-analyzer-security*", |
| 27 | // Disabling due to many unavoidable warnings from strtol() usage. |
| 28 | "-google-runtime-int", |
| 29 | ], |
| 30 | tidy_flags: [ |
| 31 | "-warnings-as-errors=android-*,clang-analyzer-security*,cert-*" |
Bernie Innocenti | 0c53274 | 2018-06-11 14:12:08 +0900 | [diff] [blame] | 32 | ], |
| 33 | } |