diff options
author | Yi Kong <yikong@google.com> | 2019-02-28 14:14:30 -0800 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2019-02-28 15:54:58 -0800 |
commit | 4ca9a6b5766a64b5a2e8972f1b059a578d8388cd (patch) | |
tree | 8ee767b15e5a1d276fffa70c583eac46b11c1982 /libc/malloc_hooks/malloc_hooks.cpp | |
parent | 6b65e078099ea8f9b5e570d43c5d7135b40e7fde (diff) |
Workaround string-plus-int warning
The upcoming compiler warns against adding string and int:
In file included from bionic/libc/bionic/strsignal.cpp:41:
bionic/libc/private/bionic_sigdefs.h:58:1: error: adding 'int' to a string does not append to the string [-Werror,-Wstring-plus-int]
__BIONIC_SIGDEF(SIGWINCH, "Window size changed")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bionic/libc/bionic/strsignal.cpp:40:83: note: expanded from macro '__BIONIC_SIGDEF'
#define __BIONIC_SIGDEF(signal_number, unused) [ signal_number ] = #signal_number + 3,
~~~~~~~~~~~~~~~^~~
Use array indexing index to avoid this warning.
Test: m checkbuild
Change-Id: Ib5e20edbf5bac76352df0484dd233d0621beb4e9
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions