From: Eric Biggers Date: Wed, 25 Jan 2023 23:45:33 +0000 (+0000) Subject: AOSP: Stop explicitly specifying -fno-strict-aliasing X-Git-Tag: v1.46.6~34 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=6605a07f6afe3d9d667ff31855bc607c1904d18b;p=tools%2Fe2fsprogs.git AOSP: Stop explicitly specifying -fno-strict-aliasing 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 --- diff --git a/debugfs/Android.bp b/debugfs/Android.bp index 3a2f520..6ccc6a0 100644 --- a/debugfs/Android.bp +++ b/debugfs/Android.bp @@ -43,7 +43,6 @@ cc_defaults { ], cflags: [ "-Wno-unused-variable", - "-fno-strict-aliasing", "-DDEBUGFS", ], include_dirs: [ diff --git a/e2fsck/Android.bp b/e2fsck/Android.bp index 22396c4..ad2e435 100644 --- a/e2fsck/Android.bp +++ b/e2fsck/Android.bp @@ -49,7 +49,6 @@ cc_defaults { ], cflags: [ "-Wno-sign-compare", - "-fno-strict-aliasing", ], } diff --git a/lib/blkid/Android.bp b/lib/blkid/Android.bp index f5d25da..66d587b 100644 --- a/lib/blkid/Android.bp +++ b/lib/blkid/Android.bp @@ -53,7 +53,6 @@ cc_library { "-Wno-error=attributes", "-Wno-error=pointer-sign", "-Wno-unused-parameter", - "-fno-strict-aliasing", ], header_libs: ["libext2-headers"],