aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPirama Arumuga Nainar <pirama@google.com>2018-06-25 13:32:51 -0700
committerPirama Arumuga Nainar <pirama@google.com>2018-06-25 13:34:07 -0700
commit39c92d1fef4fc8288a178f791867eef82bec7692 (patch)
treebbe88f77e87cb261efc2a0e305e63434b8d4666d
parent95affad99635ac7c02606d6ff7d94034963d49ac (diff)
downloadlibusb-39c92d1fef4fc8288a178f791867eef82bec7692.tar.gz
Disable warnings for Windows
Bug: http://b/69933068 Disable -Wunused-parameter and -Wunused-function, which is emitted when using Clang to build Windows host modules. Test: m native-host-cross with clang Change-Id: I5d0921b960ed61449b62730bd9c73c51fc6b7332
-rw-r--r--Android.bp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index e0fd619..bd5eecc 100644
--- a/Android.bp
+++ b/Android.bp
@@ -84,7 +84,11 @@ cc_library {
"windows",
],
- cflags: ["-Werror"],
+ cflags: [
+ "-Werror",
+ "-Wno-unused-function",
+ "-Wno-unused-parameter",
+ ],
enabled: true,
},
},