]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
AOSP: Add e2fsprogs-defaults cc_defaults
authorChih-Hung Hsieh <chh@google.com>
Wed, 27 Sep 2017 18:12:30 +0000 (11:12 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 26 Feb 2018 18:27:34 +0000 (13:27 -0500)
This is the result of two commits:

AOSP: Use -Werror in external/e2fsprogs
AOSP: Revert "Use -Werror in external/e2fsprogs"

... where the second wasn't quite an exact revert of the first.
Sigh.

Change-Id: I3842bd72cdb24ca51a0a42685a33a0ce082f9c77
From AOSP commit: 2002d7f1fca44300198d7eee8503e015e4d4682e

Change-Id: I16e52d4088c5b85dd23de519cb5af8aefeef85e6
From AOSP commit: ec02acfd8576df4bd0779c9f88f32e02355c5d2c

Android.bp

index a095aea8ada705c2d5c5a4544bcb957f873544ba..8e44ba7b749d4eccedc4bc7eb0ac787d33118427 100644 (file)
@@ -1,5 +1,17 @@
 // Copyright 2017 The Android Open Source Project
 
+cc_defaults {
+    name: "e2fsprogs-defaults",
+    clang_cflags: ["-Wno-error=macro-redefined"],
+    cflags: ["-Wall", "-Werror"],
+    target: {
+        darwin: {
+            // Still has unfixed/unsuppressed warnings.
+            cflags: ["-Wno-error"],
+        },
+    },
+}
+
 subdirs = [
     "contrib",
     "debugfs",