cc_defaults {
name: "e2fsprogs-defaults",
- cflags: ["-Wall", "-Werror", "-Wno-pointer-arith"],
+ cflags: [
+ "-Wall",
+ "-Werror",
+ // Some warnings that Android's build system enables by default are not
+ // supported by upstream e2fsprogs. When such a warning shows up,
+ // disable it below. Please don't disable warnings that upstream
+ // e2fsprogs is supposed to support; for those, fix the code instead.
+ "-Wno-pointer-arith",
+ "-Wno-sign-compare",
+ "-Wno-type-limits",
+ "-Wno-typedef-redefinition",
+ "-Wno-unused-parameter",
+ ],
target: {
- windows: {
- cflags: [
- "-Wno-typedef-redefinition",
- "-Wno-unused-parameter",
- ],
- },
bionic: {
system_shared_libs: ["libc", "libdl"],
},
target: {
windows: {
- cflags: [
- "-Wno-error=typedef-redefinition",
- ],
-
enabled: true,
},
},
- cflags: [
- "-Wno-unused-parameter",
- ],
-
header_libs: ["libext2-headers"],
export_include_dirs: ["."],
export_header_lib_headers: ["libext2-headers"],
"libsparse",
"libz",
],
- cflags: ["-Wno-unused-parameter"],
target: {
android: {
shared_libs: ["libext2_uuid"],
enabled: true,
srcs: ["windows_io.c"],
exclude_srcs: ["unix_io.c"],
- cflags: [
- "-Wno-error=typedef-redefinition",
- ],
},
},