From: Eric Biggers Date: Mon, 30 Jan 2023 19:04:32 +0000 (+0000) Subject: AOSP: Android: stop suppressing warnings controlled by -Wall X-Git-Tag: v1.46.6~30 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=c4749950337327946f969b3bfeb67b3cdf60672a;p=tools%2Fe2fsprogs.git AOSP: Android: stop suppressing warnings controlled by -Wall Upstream fully supports -Wall now. Change-Id: Ida895a1c5dfdf168bc6f50049680b2d2bfbb2942 From AOSP commit: 0ef947d1d4890b3fd4509bc1f3c98bb0f0a525f5 --- diff --git a/Android.bp b/Android.bp index 25755d9..3ed16a8 100644 --- a/Android.bp +++ b/Android.bp @@ -52,7 +52,6 @@ cc_defaults { cflags: [ "-Wno-typedef-redefinition", "-Wno-unused-parameter", - "-Wno-unused-variable", ], }, bionic: { diff --git a/debugfs/Android.bp b/debugfs/Android.bp index 6ccc6a0..4c60a2d 100644 --- a/debugfs/Android.bp +++ b/debugfs/Android.bp @@ -42,7 +42,6 @@ cc_defaults { "do_journal.c", ], cflags: [ - "-Wno-unused-variable", "-DDEBUGFS", ], include_dirs: [ diff --git a/lib/blkid/Android.bp b/lib/blkid/Android.bp index db6da1e..cf20516 100644 --- a/lib/blkid/Android.bp +++ b/lib/blkid/Android.bp @@ -40,7 +40,6 @@ cc_library { target: { windows: { cflags: [ - "-Wno-pointer-to-int-cast", "-Wno-error=typedef-redefinition", ], @@ -49,8 +48,6 @@ cc_library { }, cflags: [ - "-Wno-error=attributes", - "-Wno-error=pointer-sign", "-Wno-unused-parameter", ], diff --git a/lib/e2p/Android.bp b/lib/e2p/Android.bp index bf3ec7d..6cfdcda 100644 --- a/lib/e2p/Android.bp +++ b/lib/e2p/Android.bp @@ -47,7 +47,6 @@ cc_library { ], cflags: [ - "-Wno-error=attributes", "-Wno-unused-parameter", ], @@ -55,7 +54,6 @@ cc_library { windows: { enabled: true, cflags: [ - "-Wno-unused-variable", "-Wno-error=typedef-redefinition", ], }, diff --git a/lib/ext2fs/Android.bp b/lib/ext2fs/Android.bp index 465dd55..5ed7aec 100644 --- a/lib/ext2fs/Android.bp +++ b/lib/ext2fs/Android.bp @@ -122,8 +122,6 @@ cc_library { srcs: ["windows_io.c"], exclude_srcs: ["unix_io.c"], cflags: [ - "-Wno-format", - "-Wno-unused-variable", "-Wno-error=typedef-redefinition", ], }, diff --git a/lib/uuid/Android.bp b/lib/uuid/Android.bp index e45251b..596b20a 100644 --- a/lib/uuid/Android.bp +++ b/lib/uuid/Android.bp @@ -40,7 +40,6 @@ cc_library { "uuid_time.c", ], cflags: [ - "-Wno-unused-function", "-Wno-unused-parameter", ], target: { diff --git a/misc/Android.bp b/misc/Android.bp index 12b3e25..70c2041 100644 --- a/misc/Android.bp +++ b/misc/Android.bp @@ -23,14 +23,12 @@ cc_library { target: { windows: { enabled: true, - cflags: ["-Wno-unused-variable"], }, }, srcs: [ "create_inode.c", ], - cflags: ["-Wno-error=format-extra-args"], shared_libs: [ "libext2fs", "libext2_com_err", @@ -54,9 +52,7 @@ cc_defaults { "default_profile.c", ], cflags: [ - "-Wno-error=format", "-Wno-error=type-limits", - "-Wno-format-extra-args", ], stl: "libc++_static",