Whamcloud - gitweb
AOSP: Android: stop suppressing warnings controlled by -Wall
authorEric Biggers <ebiggers@google.com>
Mon, 30 Jan 2023 19:04:32 +0000 (19:04 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 1 Feb 2023 05:22:43 +0000 (00:22 -0500)
Upstream fully supports -Wall now.

Change-Id: Ida895a1c5dfdf168bc6f50049680b2d2bfbb2942
From AOSP commit: 0ef947d1d4890b3fd4509bc1f3c98bb0f0a525f5

Android.bp
debugfs/Android.bp
lib/blkid/Android.bp
lib/e2p/Android.bp
lib/ext2fs/Android.bp
lib/uuid/Android.bp
misc/Android.bp

index 25755d9..3ed16a8 100644 (file)
@@ -52,7 +52,6 @@ cc_defaults {
             cflags: [
                 "-Wno-typedef-redefinition",
                 "-Wno-unused-parameter",
-                "-Wno-unused-variable",
             ],
         },
         bionic: {
index 6ccc6a0..4c60a2d 100644 (file)
@@ -42,7 +42,6 @@ cc_defaults {
         "do_journal.c",
     ],
     cflags: [
-        "-Wno-unused-variable",
         "-DDEBUGFS",
     ],
     include_dirs: [
index db6da1e..cf20516 100644 (file)
@@ -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",
     ],
 
index bf3ec7d..6cfdcda 100644 (file)
@@ -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",
             ],
         },
index 465dd55..5ed7aec 100644 (file)
@@ -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",
             ],
         },
index e45251b..596b20a 100644 (file)
@@ -40,7 +40,6 @@ cc_library {
         "uuid_time.c",
     ],
     cflags: [
-        "-Wno-unused-function",
         "-Wno-unused-parameter",
     ],
     target: {
index 12b3e25..70c2041 100644 (file)
@@ -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",