diff options
author | Yi Kong <yikong@google.com> | 2019-03-18 22:11:41 -0700 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2019-03-19 05:35:36 +0000 |
commit | 411f59e20bd3b1e5526dc84034c19965770febac (patch) | |
tree | ca2e5dbf29e2f00d0eb1ef90be39907c10c59294 | |
parent | 6efbca08614c5334ae1fd26d1125c24e096d6e3d (diff) | |
download | lua-411f59e20bd3b1e5526dc84034c19965770febac.tar.gz |
Suppress -Wstring-plus-int warning
clang-r353983 emits the following new warning:
external/lua/src/lundump.c:237:33: error: adding 'int' to a string does not append to the string [-Werror,-Wstring-plus-int]
checkliteral(S, LUA_SIGNATURE + 1, "not a"); /* 1st char already checked */
~~~~~~~~~~~~~~^~~
external/lua/src/lundump.c:237:33: note: use array indexing to silence this warning
checkliteral(S, LUA_SIGNATURE + 1, "not a"); /* 1st char already checked */
^
& [ ]
Test: m checkbuild
Bug: 128878287
Change-Id: If5eebce35908b2745d27cab6ad31356d488cccf1
-rw-r--r-- | Android.bp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -19,6 +19,7 @@ cc_library_static { "-Werror", "-Wall", "-Wno-deprecated-declarations", + "-Wno-string-plus-int", "-O2", "-DLUA_USE_LINUX", "-DLUA_COMPAT_5_2", |