cc_binary {
name: "add_ext4_encrypt",
host_supported: true,
+ defaults: ["e2fsprogs-defaults"],
srcs: ["add_ext4_encrypt.c"],
- cflags: ["-W", "-Wall", "-Wno-macro-redefined"],
shared_libs: [
"libext2fs",
"libext2_com_err",
cc_binary {
name: "e2fsdroid",
host_supported: true,
+ defaults: ["e2fsprogs-defaults"],
srcs: [
"e2fsdroid.c",
"basefs_allocator.c",
"hashmap.c",
],
- cflags: ["-W", "-Wall"],
target: {
host: {
static_libs: [
cc_binary {
name: "ext2simg",
host_supported: true,
+ defaults: ["e2fsprogs-defaults"],
srcs: ["ext2simg.c"],
- cflags: ["-W", "-Wall"],
shared_libs: [
"libext2fs",
"libext2_com_err",
basefs_allocator.c \
hashmap.c \
-e2fsdroid_cflags := -W -Wall
+e2fsdroid_cflags := -W -Wall -Werror -Wno-error=macro-redefined
e2fsdroid_static_libraries := \
libext2_com_err \
cc_defaults {
name: "debugfs-defaults",
+ defaults: ["e2fsprogs-defaults"],
srcs: [
"debug_cmds.c",
"debugfs.c",
"do_journal.c",
],
cflags: [
- "-W",
- "-Wall",
- "-Wno-macro-redefined",
+ "-Wno-unused-variable",
"-fno-strict-aliasing",
"-DDEBUGFS",
],
cc_defaults {
name: "e2fsck-defaults",
+ defaults: ["e2fsprogs-defaults"],
srcs: [
"e2fsck.c",
"super.c",
"readahead.c",
"extents.c",
],
- cflags: ["-W", "-Wall", "-Wno-macro-redefined", "-fno-strict-aliasing"],
+ cflags: [
+ "-Wno-sign-compare",
+ "-fno-strict-aliasing"
+ ],
}
e2fsck_libs = [
name: "libext2_blkid",
host_supported: true,
unique_host_soname: true,
+ defaults: ["e2fsprogs-defaults"],
srcs: [
"cache.c",
"dev.c",
},
cflags: [
- "-W",
- "-Wall",
+ "-Wno-error=attributes",
+ "-Wno-error=pointer-sign",
+ "-Wno-unused-parameter",
"-fno-strict-aliasing",
],
name: "libext2_e2p",
host_supported: true,
unique_host_soname: true,
+ defaults: ["e2fsprogs-defaults"],
srcs: [
"feature.c",
"fgetflags.c",
"percent.c",
],
- cflags: [
- "-W",
- "-Wall",
- "-Wno-macro-redefined",
- ],
+ cflags: ["-Wno-error=attributes"],
target: {
windows: {
name: "libext2_com_err",
host_supported: true,
unique_host_soname: true,
+ defaults: ["e2fsprogs-defaults"],
srcs: [
"error_message.c",
"et_name.c",
"com_right.c",
],
- cflags: [
- "-W",
- "-Wall",
- ],
target: {
windows: {
enabled: true,
name: "libext2fs",
host_supported: true,
unique_host_soname: true,
+ defaults: ["e2fsprogs-defaults"],
srcs: [
"ext2_err.c",
"alloc.c",
whole_static_libs: [
"libext2_com_err"
],
- cflags: [
- "-W",
- "-Wall",
- "-Wno-unused-parameter",
- "-Wno-macro-redefined",
- ],
+ cflags: ["-Wno-unused-parameter"],
target: {
host: {
// Consider removing this library as a whole for the host. It is not
enabled: true,
include_dirs: [ "external/e2fsprogs/include/mingw" ],
cflags: [
+ "-Wno-error=cpp",
"-Wno-format",
"-Wno-unused-variable",
],
name: "libext2_ss",
host_supported: true,
unique_host_soname: true,
+ defaults: ["e2fsprogs-defaults"],
srcs: [
"ss_err.c",
"std_rqs.c",
"get_readline.c",
],
shared_libs: ["libext2_com_err"],
- cflags: [
- "-W",
- "-Wall",
- ],
-
header_libs: ["libext2-headers"],
export_include_dirs: ["."],
export_header_lib_headers: ["libext2-headers"],
name: "libext2_quota",
host_supported: true,
unique_host_soname: true,
+ defaults: ["e2fsprogs-defaults"],
srcs: [
"dict.c",
"mkquota.c",
},
},
- cflags: [
- "-W",
- "-Wall",
- "-Wno-macro-redefined",
- ],
-
header_libs: ["libext2-headers"],
export_include_dirs: ["."],
export_header_lib_headers: ["libext2-headers"],
name: "libext2_profile",
host_supported: true,
unique_host_soname: true,
+ defaults: ["e2fsprogs-defaults"],
srcs: [
"prof_err.c",
"profile.c",
],
- cflags = [
- "-W",
- "-Wall",
- ],
shared_libs: ["libext2_com_err"],
header_libs: ["libext2-headers"],
name: "libext2_uuid",
host_supported: true,
unique_host_soname: true,
+ defaults: ["e2fsprogs-defaults"],
srcs: [
"clear.c",
"compare.c",
"uuid_time.c",
],
cflags: [
- "-W",
- "-Wall",
"-Wno-unused-function",
"-Wno-unused-parameter",
],
target: {
windows: {
+ // Cannot suppress the _WIN32_WINNT redefined warning.
+ cflags: ["-Wno-error"],
include_dirs: [ "external/e2fsprogs/include/mingw" ],
enabled: true
},
cc_library {
name: "libext2_misc",
host_supported: true,
+ defaults: ["e2fsprogs-defaults"],
target: {
windows: {
srcs: [
"create_inode.c",
],
- cflags: ["-W", "-Wall"],
+ cflags: ["-Wno-error=format-extra-args"],
shared_libs: [
"libext2_quota",
"libext2fs",
cc_binary {
name: "mke2fs",
host_supported: true,
+ defaults: ["e2fsprogs-defaults"],
srcs: [
"mke2fs.c",
},
windows: {
include_dirs: [ "external/e2fsprogs/include/mingw" ],
- cflags: ["-D_POSIX", "-D__USE_MINGW_ALARM"],
+ cflags: [
+ "-D_POSIX",
+ "-D__USE_MINGW_ALARM",
+ // mke2fs.c has a warning from gcc which cannot be suppressed:
+ // passing argument 3 of 'ext2fs_get_device_size' from
+ // incompatible pointer type
+ "-Wno-error"
+ ],
ldflags: ["-static"],
host_ldlibs: ["-lws2_32"],
enabled: true
cc_defaults {
name: "tune2fs-defaults",
+ defaults: ["e2fsprogs-defaults"],
srcs: [
"tune2fs.c",
"util.c",
],
- cflags: [
- "-W",
- "-Wall",
- "-DNO_RECOVERY",
- "-Wno-macro-redefined",
- ],
+ cflags: ["-DNO_RECOVERY"],
include_dirs: ["external/e2fsprogs/e2fsck"],
}
cc_binary {
name: "badblocks",
host_supported: true,
+ defaults: ["e2fsprogs-defaults"],
srcs: ["badblocks.c"],
- cflags: ["-W", "-Wall", "-Wno-macro-redefined"],
shared_libs: [
"libext2fs",
"libext2_com_err",
cc_binary {
name: "chattr",
host_supported: true,
+ defaults: ["e2fsprogs-defaults"],
srcs: ["chattr.c"],
- cflags: ["-W", "-Wall", "-Wno-macro-redefined"],
shared_libs: [
"libext2_com_err",
"libext2_e2p",
cc_defaults {
name: "lsattr-defaults",
srcs: ["lsattr.c"],
- cflags: ["-W", "-Wall", "-Wno-macro-redefined"],
+ defaults: ["e2fsprogs-defaults"],
}
lsattr_libs = [
cc_binary {
name: "blkid",
+ defaults: ["e2fsprogs-defaults"],
srcs: ["blkid.c"],
- cflags: ["-W", "-Wall", "-Wno-macro-redefined"],
shared_libs: [
"libext2fs",
"libext2_blkid",
cc_binary {
name: "e4crypt",
host_supported: true,
+ defaults: ["e2fsprogs-defaults"],
srcs: ["e4crypt.c"],
- cflags: ["-W", "-Wall", "-Wno-macro-redefined"],
shared_libs: [
"libext2fs",
"libext2_uuid",
cc_binary {
name: "e2image",
host_supported: true,
+ defaults: ["e2fsprogs-defaults"],
srcs: ["e2image.c"],
- cflags: ["-W", "-Wall", "-Wno-macro-redefined"],
shared_libs: [
"libext2fs",
"libext2_blkid",
mke2fs_c_includes := \
external/e2fsprogs/e2fsck
-mke2fs_cflags := -W -Wall -Wno-macro-redefined
+mke2fs_cflags := -W -Wall -Werror -Wno-macro-redefined
mke2fs_static_libraries := \
libext2_blkid \
cc_binary {
name: "resize2fs",
host_supported: true,
+ defaults: ["e2fsprogs-defaults"],
srcs: [
"extent.c",
"sim_progress.c",
"resource_track.c",
],
- cflags: ["-W", "-Wall", "-Wno-macro-redefined"],
shared_libs: [
"libext2fs",
"libext2_com_err",