Whamcloud - gitweb
AOSP: Stop explicitly specifying -fno-strict-aliasing
authorEric Biggers <ebiggers@google.com>
Wed, 25 Jan 2023 23:45:33 +0000 (23:45 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 1 Feb 2023 05:16:39 +0000 (00:16 -0500)
The upstream build system for e2fsprogs doesn't use
-fno-strict-aliasing, so update the Android.bp files to match.

Note: Android's build system currently uses -fno-strict-aliasing by
default anyway, so this change doesn't actually enable strict aliasing.
But that's a bit besides the point.  The point is that this project
doesn't need anything special, so we don't need to do anything special.

Change-Id: Ifa637058fd95fdc2b6994a8b801b238e929c1f13
From AOSP commit: c30a15e5d615748d4824dec26f1bda1a86be979c

debugfs/Android.bp
e2fsck/Android.bp
lib/blkid/Android.bp

index 3a2f520..6ccc6a0 100644 (file)
@@ -43,7 +43,6 @@ cc_defaults {
     ],
     cflags: [
         "-Wno-unused-variable",
-        "-fno-strict-aliasing",
         "-DDEBUGFS",
     ],
     include_dirs: [
index 22396c4..ad2e435 100644 (file)
@@ -49,7 +49,6 @@ cc_defaults {
     ],
     cflags: [
         "-Wno-sign-compare",
-        "-fno-strict-aliasing",
     ],
 }
 
index f5d25da..66d587b 100644 (file)
@@ -53,7 +53,6 @@ cc_library {
         "-Wno-error=attributes",
         "-Wno-error=pointer-sign",
         "-Wno-unused-parameter",
-        "-fno-strict-aliasing",
     ],
 
     header_libs: ["libext2-headers"],