Merge "Use -Werror in hardware/libhardware_legacy" am: 8087f07a2b
am: a35e4c72b1
Change-Id: I8f18572a9df2cbcea8a837b7f48bdb93ffee4dd9
This commit is contained in:
commit
6817e3fa13
3 changed files with 6 additions and 1 deletions
|
@ -17,6 +17,7 @@ cc_library {
|
|||
name: "libpower",
|
||||
|
||||
srcs: ["power.c"],
|
||||
cflags: ["-Wall", "-Werror"],
|
||||
export_include_dirs: ["include"],
|
||||
shared_libs: ["libcutils", "liblog"],
|
||||
vendor_available: true,
|
||||
|
@ -48,6 +49,8 @@ cc_library_shared {
|
|||
|
||||
cflags: [
|
||||
"-DQEMU_HARDWARE",
|
||||
"-Wall",
|
||||
"-Werror",
|
||||
"-Wno-unused-parameter",
|
||||
"-Wno-gnu-designator",
|
||||
],
|
||||
|
|
|
@ -13,7 +13,10 @@ cc_library_static {
|
|||
name: "libaudiohw_legacy",
|
||||
static_libs: ["libmedia_helper"],
|
||||
cflags: [
|
||||
"-Wall",
|
||||
"-Werror",
|
||||
"-Wno-unused-parameter",
|
||||
"-Wno-unused-variable",
|
||||
"-Wno-gnu-designator",
|
||||
],
|
||||
|
||||
|
|
1
power.c
1
power.c
|
@ -91,7 +91,6 @@ acquire_wake_lock(int lock, const char* id)
|
|||
if (g_error) return g_error;
|
||||
|
||||
int fd;
|
||||
size_t len;
|
||||
ssize_t ret;
|
||||
|
||||
if (lock != PARTIAL_WAKE_LOCK) {
|
||||
|
|
Loading…
Reference in a new issue