Fix / suppress warnings for clang+mingw

Switch attribute error to attribute unavailable, which apparently works
since it then broke the build :-/

Suppress unused parameter warnings. They aren't that useful for windows
functions that are just #ifndef WIN32. This is marked as a global cflag,
but something is overriding that with the clang+mingw changes, and it's
not actually that hard to suppress or fix where necessary.

Bug: 69933068
Test: mmma build/tools/libhost
Change-Id: I09adda4544bc9b56452b4fe182dba3d0b701dcbb
This commit is contained in:
Dan Willemsen
2017-11-29 18:47:29 -08:00
parent ada8948b9a
commit 25c73e9156
2 changed files with 9 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ cc_library_host_static {
name: "libhost",
target: {
windows: {
cflags: ["-Wno-unused-parameter"],
enabled: true,
},
},