diff options
author | Colin Cross <ccross@android.com> | 2018-05-10 09:56:16 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2018-05-10 10:10:48 -0700 |
commit | 6ff5935891e46441fb8d0aa4d6441ae23f2d7477 (patch) | |
tree | 57efd2c0cd8f5d127cc627face01321d994529d2 /memtrack | |
parent | 13be680693263d3aef084be0957d7bc91c228847 (diff) | |
download | extras-6ff5935891e46441fb8d0aa4d6441ae23f2d7477.tar.gz |
Remove -Wno-error from system/extras
Fix warnings in memtrack and micro_bench and remove -Wno-error.
Test: mmma system/extras
Change-Id: I48261f6af94c7fcba8a10e8fb558f47ab9d0e8be
Diffstat (limited to 'memtrack')
-rw-r--r-- | memtrack/Android.bp | 1 | ||||
-rw-r--r-- | memtrack/memtrack.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/memtrack/Android.bp b/memtrack/Android.bp index 3f445b71..457140e9 100644 --- a/memtrack/Android.bp +++ b/memtrack/Android.bp @@ -20,7 +20,6 @@ cc_defaults { cflags: [ "-Wall", "-Werror", - "-Wno-error=unused-value", ], } diff --git a/memtrack/memtrack.cpp b/memtrack/memtrack.cpp index d3736091..eaeecc3d 100644 --- a/memtrack/memtrack.cpp +++ b/memtrack/memtrack.cpp @@ -68,7 +68,7 @@ bool FileData::isAvail(size_t bytes_needed) { while (cur_idx_ + bytes_needed >= len_) { bytes = read(fd_, data_ + len_, max_ - len_); if (bytes == 0 || bytes == -1) { - read_complete_; // unused read? + read_complete_ = true; break; } len_ += bytes; |