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 | e630555 | 2019-10-30 17:26:00 +0900 | [diff] [blame^] | 13 | "-Werror=sometimes-uninitialized", |
| 14 | "-Werror=conditional-uninitialized", |
Bernie Innocenti | 9895179 | 2018-06-26 17:13:44 +0900 | [diff] [blame] | 15 | "-Wnullable-to-nonnull-conversion", |
Bernie Innocenti | 45238a1 | 2018-12-04 14:57:48 +0900 | [diff] [blame] | 16 | "-Wsign-compare", |
Bernie Innocenti | 9895179 | 2018-06-26 17:13:44 +0900 | [diff] [blame] | 17 | "-Wthread-safety", |
| 18 | "-Wunused-parameter", |
waynema | 71a0b59 | 2018-11-21 13:31:34 +0800 | [diff] [blame] | 19 | "-Wuninitialized", |
Bernie Innocenti | 9895179 | 2018-06-26 17:13:44 +0900 | [diff] [blame] | 20 | ], |
Bernie Innocenti | 0c53274 | 2018-06-11 14:12:08 +0900 | [diff] [blame] | 21 | tidy: true, |
| 22 | tidy_checks: [ |
| 23 | "android-*", |
| 24 | "cert-*", |
Bernie Innocenti | 2a008c5 | 2018-10-12 22:30:22 +0900 | [diff] [blame] | 25 | "clang-analyzer-security*", |
Bernie Innocenti | a5161a0 | 2019-01-30 22:40:53 +0900 | [diff] [blame] | 26 | "google-*", |
| 27 | "misc-*", |
| 28 | "performance-*", |
| 29 | "-cert-err34-c", // TODO: re-enable after removing atoi() and sscanf() calls |
| 30 | "-google-readability-*", // Too pedantic |
| 31 | "-google-runtime-int", // Too many unavoidable warnings due to strtol() |
| 32 | "-google-runtime-references", // Grandfathered usage of pass by non-const reference |
| 33 | "-misc-non-private-member-variables-in-classes", // Also complains about structs |
Bernie Innocenti | 2a008c5 | 2018-10-12 22:30:22 +0900 | [diff] [blame] | 34 | ], |
| 35 | tidy_flags: [ |
Bernie Innocenti | a5161a0 | 2019-01-30 22:40:53 +0900 | [diff] [blame] | 36 | "-warnings-as-errors=" |
| 37 | + "'android-*'" |
| 38 | + ",'clang-analyzer-security*'" |
| 39 | + ",'cert-*'" |
| 40 | + ",'google-*'" |
| 41 | + ",'performance-*'" |
| 42 | + ",'misc-*'" |
Bernie Innocenti | 0c53274 | 2018-06-11 14:12:08 +0900 | [diff] [blame] | 43 | ], |
| 44 | } |