summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2017-10-10 13:41:36 -0700
committerChih-Hung Hsieh <chh@google.com>2017-10-10 13:45:25 -0700
commit6392371cb2d5357cdeec20c405cc6d0281970dbb (patch)
treefd471f39c8696ae3ff26e01cb60eaed85dcf524c
parent4103a4ab7d45b439b4f7297a2129a1ca45ec91dd (diff)
downloadfsck_msdos-6392371cb2d5357cdeec20c405cc6d0281970dbb.tar.gz
Use -Werror in external/fsck_msdos
* Fix old redefined error of LOCAL_CFLAGS. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I8f06425595cf1fbce8d1e124536a5cf1dfdc360b
-rw-r--r--Android.mk12
1 files changed, 9 insertions, 3 deletions
diff --git a/Android.mk b/Android.mk
index 534a478..8dec83a 100644
--- a/Android.mk
+++ b/Android.mk
@@ -6,9 +6,15 @@ LOCAL_SRC_FILES := boot.c check.c dir.c fat.c main.c
LOCAL_C_INCLUDES := external/fsck_msdos/
-LOCAL_CFLAGS := -O2 -g -W -Wall -D_BSD_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-
-LOCAL_CFLAGS := -Wno-unused-variable -Wno-unused-const-variable -Wno-format -Wno-sign-compare
+LOCAL_CFLAGS := -O2 -g \
+ -Wall -Werror \
+ -D_BSD_SOURCE \
+ -D_LARGEFILE_SOURCE \
+ -D_FILE_OFFSET_BITS=64 \
+ -Wno-unused-variable \
+ -Wno-unused-const-variable \
+ -Wno-format \
+ -Wno-sign-compare
LOCAL_MODULE := fsck_msdos
LOCAL_MODULE_TAGS :=