diff options
author | Stephen Hines <srhines@google.com> | 2020-08-18 01:38:14 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2020-08-18 01:40:41 -0700 |
commit | 62165a180883889c3bdd5c99fc3bdd91778b0c25 (patch) | |
tree | a771f5fe05336a026519bc8e61bf3f1b3b814f72 /libc/malloc_hooks/malloc_hooks.cpp | |
parent | 3936985e75eace1adeeb8d64d4c98e737318d284 (diff) |
Cast from const void * -> const char * when using memchr().
bionic/tests/fortify_test.cpp:207:31: error: format specifies type 'char *' but the argument has type 'void *' [-Werror,-Wformat]
ASSERT_FORTIFY(printf("%s", memchr(myfoo.a, 'a', asize)));
~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~
Bug: http://b/155835175
Test: atest for bionic
Change-Id: I0fa4e63deadffb7391e66ab834ff11e4f1d6dba6
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions