aboutsummaryrefslogtreecommitdiff
path: root/debugfs
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2017-09-27 11:12:30 -0700
committerChih-Hung Hsieh <chh@google.com>2017-10-16 11:02:57 -0700
commit2002d7f1fca44300198d7eee8503e015e4d4682e (patch)
tree0c9fa15941e5bc4cebf9439ed134c7076f777ebd /debugfs
parent0a4eaed4e09cb2c4e4400bd56d4e239d2fa78470 (diff)
downloade2fsprogs-2002d7f1fca44300198d7eee8503e015e4d4682e.tar.gz
Use -Werror in external/e2fsprogs
* Share common flags in e2fsprogs-defaults. * -Wno-error=macro-redefined cannot be used for windows gcc cross compiler. * Suppress some non-critical warnings. * Use -Wno-error for darwin; to fix mac specific warnings later. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I3842bd72cdb24ca51a0a42685a33a0ce082f9c77
Diffstat (limited to 'debugfs')
-rw-r--r--debugfs/Android.bp5
1 files changed, 2 insertions, 3 deletions
diff --git a/debugfs/Android.bp b/debugfs/Android.bp
index adaa6354..2a7d6222 100644
--- a/debugfs/Android.bp
+++ b/debugfs/Android.bp
@@ -5,6 +5,7 @@
cc_defaults {
name: "debugfs-defaults",
+ defaults: ["e2fsprogs-defaults"],
srcs: [
"debug_cmds.c",
"debugfs.c",
@@ -31,9 +32,7 @@ cc_defaults {
"do_journal.c",
],
cflags: [
- "-W",
- "-Wall",
- "-Wno-macro-redefined",
+ "-Wno-unused-variable",
"-fno-strict-aliasing",
"-DDEBUGFS",
],