diff options
author | Dan Willemsen <dwillemsen@google.com> | 2017-09-21 16:58:15 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2017-09-22 19:37:35 +0000 |
commit | 7ebc81f4a2b093c978d1f61db8c0af0adf1ec66e (patch) | |
tree | 7f55523c8a9205bb6039814f0d1cdd3c4200c8bc /libc/malloc_debug/malloc_debug.cpp | |
parent | 24c9c3f3800eb66640d95eaa251a97cf97d5f438 (diff) |
Fix error found building relocation packer for host bionic
bionic/tools/relocation_packer/src/main.cc:109:7: error: comparison of constant
-1 with expression of type 'typeof (read(fd.get(), e_ident, (16)) != (16))'
(aka 'bool') is always false [-Werror,-Wtautological-constant-out-of-range-compare]
if (TEMP_FAILURE_RETRY(read(fd.get(), e_ident, EI_NIDENT) != EI_NIDENT)) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bionic/libc/include/unistd.h:243:18: note: expanded from macro 'TEMP_FAILURE_RETRY'
} while (_rc == -1 && errno == EINTR); \
~~~ ^ ~~
1 error generated.
Bug: 31559095
Test: mmma bionic
Change-Id: I473a19e3d51ff355233ae7f87b1013be069edb1f
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
0 files changed, 0 insertions, 0 deletions